fix: GraphQL error messages disclose pointer and relation target class names when public introspection is disabled (GHSA-r2g6-4f6j-f6rf)#10568
Conversation
|
🚀 Thanks for opening this pull request! We appreciate your effort in improving the project. Please let us know once your pull request is ready for review. Tip
Note Please respond to review comments from AI agents just like you would to comments from a human reviewer. Let the reviewer resolve their own comments, unless they have reviewed and accepted your commit, or agreed with your explanation for why the feedback was incorrect. Caution Pull requests must be written using an AI agent with human supervision. Pull requests written entirely by a human will likely be rejected, because of lower code quality, higher review effort and the higher risk of introducing bugs. Please note that AI review comments on this pull request alone do not satisfy this requirement. Our CI and AI review are safeguards, not development tools. If many issues are flagged, rethink your development approach. Invest more effort in planning and design rather than using review cycles to fix low-quality code. |
📝 WalkthroughWalkthroughGraphQL error sanitization now uses incoming operation text to preserve caller-referenced type names while redacting undisclosed pointer target classes. Tests cover coercion, validation, selection, fragment, stacktrace, master-key, and public-introspection cases. ChangesGraphQL error redaction
Estimated code review effort: 3 (Moderate) | ~30 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant SchemaSuggestionsControlPlugin
participant stripSchemaIdentifiers
participant GraphQLResponse
Client->>SchemaSuggestionsControlPlugin: Send GraphQL query
SchemaSuggestionsControlPlugin->>stripSchemaIdentifiers: Pass error text and operation text
stripSchemaIdentifiers->>GraphQLResponse: Return redacted error text
SchemaSuggestionsControlPlugin->>Client: Send sanitized response
Possibly related PRs
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error, 1 inconclusive)
✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## alpha #10568 +/- ##
==========================================
+ Coverage 92.67% 92.69% +0.01%
==========================================
Files 193 193
Lines 16990 17007 +17
Branches 248 248
==========================================
+ Hits 15745 15764 +19
+ Misses 1224 1222 -2
Partials 21 21 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/GraphQL/ParseGraphQLServer.js`:
- Around line 146-153: Escape all regular-expression metacharacters in bareName
before interpolating it into the RegExp constructed by isReferenced, while
preserving the existing word-boundary matching behavior and empty/type checks.
Use a standard regex-escape approach so unusual captured type names cannot throw
or alter the pattern.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 1985520f-371e-4b4a-8f02-bc49160b7681
📒 Files selected for processing (1)
src/GraphQL/ParseGraphQLServer.js
|
@coderabbitai review your feedback conversations and resolve where you found a consensus |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
repo="parse-community/parse-server"
pr=10568
echo "### Review comments (inline) ###"
gh api "repos/$repo/pulls/$pr/comments" --paginate | jq -r '.[] | "ID:\(.id) USER:\(.user.login) PATH:\(.path) LINE:\(.line // .original_line) IN_REPLY_TO:\(.in_reply_to_id // "null")\n\(.body)\n---"'
echo "### Issue (top-level) comments ###"
gh api "repos/$repo/issues/$pr/comments" --paginate | jq -r '.[] | "ID:\(.id) USER:\(.user.login)\n\(.body)\n---"'Length of output: 20041 🏁 Script executed: #!/bin/bash
set -euo pipefail
repo="parse-community/parse-server"
pr=10568
gh api graphql -f query='
query($owner:String!, $name:String!, $pr:Int!) {
repository(owner:$owner, name:$name) {
pullRequest(number:$pr) {
reviewThreads(first:50) {
nodes {
id
isResolved
comments(first:10) {
nodes { id databaseId author { login } body }
}
}
}
}
}
}' -f owner=parse-community -f name=parse-server -F pr=$pr | jq '.data.repository.pullRequest.reviewThreads.nodes[] | {id, isResolved, comments: [.comments.nodes[] | {databaseId, author: .author.login}]}'Length of output: 1077 The one review thread I have on this PR (regarding escaping/removing the dynamic
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
# [9.10.0-alpha.6](9.10.0-alpha.5...9.10.0-alpha.6) (2026-07-10) ### Bug Fixes * GraphQL error messages disclose pointer and relation target class names when public introspection is disabled ([GHSA-r2g6-4f6j-f6rf](GHSA-r2g6-4f6j-f6rf)) ([#10568](#10568)) ([cb9b542](cb9b542))
|
🎉 This change has been released in version 9.10.0-alpha.6 |
# [9.10.0](9.9.0...9.10.0) (2026-07-13) ### Bug Fixes * Cloud Code beforeFind trigger context is not isolated from prototype pollution ([#10570](#10570)) ([bea001e](bea001e)) * Cloud Function multipart requests bypass the maxUploadSize limit ([#10498](#10498)) ([f12e1c3](f12e1c3)) * Denial of service via exponential-time processing of deeply nested query operators ([GHSA-cgxm-vr2f-6fj8](GHSA-cgxm-vr2f-6fj8)) ([#10511](#10511)) ([1103c7a](1103c7a)) * Endpoints `/login` and `/verifyPassword` disclose MFA secrets and protected fields when `_User` get is denied ([GHSA-75v4-m273-5j49](GHSA-75v4-m273-5j49)) ([#10492](#10492)) ([83e90ed](83e90ed)) * GeoPoint distance queries fail with an internal server error on MongoDB 8.3 and later ([#10572](#10572)) ([b706c22](b706c22)) * GraphQL "Did you mean" validation suggestions disclose schema to unauthenticated callers ([GHSA-8cph-rgr4-g5vj](GHSA-8cph-rgr4-g5vj)) ([#10467](#10467)) ([155123a](155123a)) * GraphQL error messages disclose pointer and relation target class names when public introspection is disabled ([GHSA-r2g6-4f6j-f6rf](GHSA-r2g6-4f6j-f6rf)) ([#10568](#10568)) ([cb9b542](cb9b542)) * GraphQL error messages disclose required input field names when public introspection is disabled ([GHSA-2fgh-8j2g-w354](GHSA-2fgh-8j2g-w354)) ([#10566](#10566)) ([d96c945](d96c945)), closes [GHSA-2f#8j2g-w354](https://github.com/GHSA-2f/issues/8j2g-w354) [/github.com/parse-community/parse-server/security/advisories/GHSA-2f#8j2g-w354](https://github.com//github.com/parse-community/parse-server/security/advisories/GHSA-2f/issues/8j2g-w354) * GraphQL variable-coercion suggestions disclose schema to unauthenticated callers ([GHSA-9g8f-h8f3-hjcm](GHSA-9g8f-h8f3-hjcm)) ([#10563](#10563)) ([2625489](2625489)) * LiveQuery discloses object data to a subscriber across an ACL read-access change ([GHSA-97pr-9hgg-3p8r](GHSA-97pr-9hgg-3p8r)) ([#10515](#10515)) ([e9c85df](e9c85df)) * LiveQuery subscriptions leak when a client reuses a subscribe requestId ([#10499](#10499)) ([3fad4fb](3fad4fb)) * Middleware route checks do not match routing-equivalent path variants (trailing slash, case) ([#10501](#10501)) ([f861210](f861210)) * NumberOrBoolean config option (cluster) value not coerced from env/CLI ([#10531](#10531)) ([459786f](459786f)) * Pre-authentication denial of service via client version header regex backtracking ([GHSA-38m6-82c8-4xfm](GHSA-38m6-82c8-4xfm)) ([#10463](#10463)) ([56c159e](56c159e)) * rateLimit on exact static routes is bypassed by appending a query string ([#10500](#10500)) ([880e8e6](880e8e6)) * Relation `$relatedTo` query bypasses `protectedFields` and owning-object ACL ([GHSA-wmwx-jr2p-4j4r](GHSA-wmwx-jr2p-4j4r)) ([#10493](#10493)) ([43658f1](43658f1)) * Server option routeAllowList is bypassable through batch sub-requests ([GHSA-p84r-h6rx-f2xr](GHSA-p84r-h6rx-f2xr)) ([#10482](#10482)) ([552c6dd](552c6dd)) * Stored XSS via malformed Content-Type bypassing file upload extension blocklist ([GHSA-r899-h629-j84r](GHSA-r899-h629-j84r)) ([#10521](#10521)) ([cce91e5](cce91e5)) * Stored XSS via non-standard file extension bypassing file upload extension blocklist ([GHSA-v8x7-r927-cc93](GHSA-v8x7-r927-cc93)) ([#10505](#10505)) ([be12a60](be12a60)) * Stored XSS via trailing-dot filename bypassing file upload extension blocklist ([GHSA-7wqv-xjf3-x35v](GHSA-7wqv-xjf3-x35v)) ([#10489](#10489)) ([66484ce](66484ce)) ### Features * Add option to disallow aggregation pipelines for the read-only master key ([#10517](#10517)) ([816078f](816078f))
|
🎉 This change has been released in version 9.10.0 |
* commit 'b5ca12fa5e2c951e0cd4ac45ec11e23430da323b': (48 commits) chore(release): 9.10.0 [skip ci] empty commit to trigger CI chore(release): 9.10.0-alpha.8 [skip ci] fix: GeoPoint distance queries fail with an internal server error on MongoDB 8.3 and later (parse-community#10572) chore(release): 9.10.0-alpha.7 [skip ci] fix: Cloud Code beforeFind trigger context is not isolated from prototype pollution (parse-community#10570) chore(release): 9.10.0-alpha.6 [skip ci] fix: GraphQL error messages disclose pointer and relation target class names when public introspection is disabled ([GHSA-r2g6-4f6j-f6rf](GHSA-r2g6-4f6j-f6rf)) (parse-community#10568) chore(release): 9.10.0-alpha.5 [skip ci] fix: GraphQL error messages disclose required input field names when public introspection is disabled ([GHSA-2fgh-8j2g-w354](GHSA-2fgh-8j2g-w354)) (parse-community#10566) chore(release): 9.10.0-alpha.4 [skip ci] fix: GraphQL variable-coercion suggestions disclose schema to unauthenticated callers ([GHSA-9g8f-h8f3-hjcm](GHSA-9g8f-h8f3-hjcm)) (parse-community#10563) chore(release): 9.10.0-alpha.3 [skip ci] fix: NumberOrBoolean config option (cluster) value not coerced from env/CLI (parse-community#10531) chore(release): 9.10.0-alpha.2 [skip ci] fix: Stored XSS via malformed Content-Type bypassing file upload extension blocklist ([GHSA-r899-h629-j84r](GHSA-r899-h629-j84r)) (parse-community#10521) test: Rate limit requestMethods is scoped to the configured HTTP methods (parse-community#10520) chore(release): 9.10.0-alpha.1 [skip ci] feat: Add option to disallow aggregation pipelines for the read-only master key (parse-community#10517) chore(release): 9.9.1-alpha.13 [skip ci] ... # Conflicts: # package.json
Issue
GraphQL error messages disclose pointer and relation target class names when public introspection is disabled (GHSA-r2g6-4f6j-f6rf)
Tasks