fix: GraphQL variable-coercion suggestions disclose schema to unauthenticated callers (GHSA-9g8f-h8f3-hjcm)#10564
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. |
📝 WalkthroughWalkthroughRefactors ChangesSchema Suggestion Stripping
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant ApolloServer
participant SchemaSuggestionsControlPlugin
Client->>ApolloServer: GraphQL request (no master key)
ApolloServer->>SchemaSuggestionsControlPlugin: willSendResponse(requestContext)
SchemaSuggestionsControlPlugin->>SchemaSuggestionsControlPlugin: stripSchemaSuggestion(error.message)
SchemaSuggestionsControlPlugin->>SchemaSuggestionsControlPlugin: stripSchemaSuggestion(error.extensions.stacktrace)
SchemaSuggestionsControlPlugin-->>ApolloServer: sanitized response body
ApolloServer-->>Client: error response without schema hints
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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
✅ Action performedReview finished.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-8.x.x #10564 +/- ##
=================================================
+ Coverage 92.47% 92.48% +0.01%
=================================================
Files 192 192
Lines 16185 16190 +5
Branches 234 234
=================================================
+ Hits 14967 14974 +7
+ Misses 1198 1196 -2
Partials 20 20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
## [8.6.85](8.6.84...8.6.85) (2026-07-08) ### Bug Fixes * GraphQL variable-coercion suggestions disclose schema to unauthenticated callers ([GHSA-9g8f-h8f3-hjcm](GHSA-9g8f-h8f3-hjcm)) ([#10564](#10564)) ([2728fcb](2728fcb))
|
🎉 This change has been released in version 8.6.85 |
Issue
GraphQL variable-coercion suggestions disclose schema to unauthenticated callers (GHSA-9g8f-h8f3-hjcm)
Tasks