fix: GraphQL variable-coercion suggestions disclose schema to unauthenticated callers (GHSA-9g8f-h8f3-hjcm)#10563
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 suggestion stripping now happens at response time for single and incremental responses, including stacktrace entries. The spec suite adds coercion-error cases for missing keys, master key access, and public introspection. ChangesSchema Suggestion Stripping
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Caution Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
❌ Failed checks (1 error)
✅ Passed checks (6 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 |
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 `@spec/ParseGraphQLServer.spec.js`:
- Around line 1179-1180: The stacktrace leak assertion in the ParseGraphQLServer
spec is too specific because JSON.stringify escapes quotes, so it can miss a
leaked Did you mean "username"? message. Update the existing error checks in the
ParseGraphQLServer.spec.js expectation block to assert against username directly
rather than the quoted string, matching the style used in the cloud-function
tests and keeping the check in terms of error.message and JSON.stringify(error).
🪄 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: 7f79fc3a-f22e-44f1-9479-d11f5deb44d9
📒 Files selected for processing (2)
spec/ParseGraphQLServer.spec.jssrc/GraphQL/ParseGraphQLServer.js
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## alpha #10563 +/- ##
=======================================
Coverage 92.66% 92.67%
=======================================
Files 193 193
Lines 16981 16986 +5
Branches 248 248
=======================================
+ Hits 15736 15741 +5
Misses 1224 1224
Partials 21 21 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
9045657 to
fc2c4ce
Compare
# [9.10.0-alpha.4](9.10.0-alpha.3...9.10.0-alpha.4) (2026-07-07) ### Bug Fixes * GraphQL variable-coercion suggestions disclose schema to unauthenticated callers ([GHSA-9g8f-h8f3-hjcm](https://github.com/parse-community/parse-server/security/advisories/GHSA-9g8f-h8f3-hjcm)) ([#10563](#10563)) ([2625489](2625489))
|
🎉 This change has been released in version 9.10.0-alpha.4 |
Issue
GraphQL variable-coercion suggestions disclose schema to unauthenticated callers (GHSA-9g8f-h8f3-hjcm)
Tasks
Summary by CodeRabbit