Repository navigation
fix(oauth): RFC8707 resource param validation - #608
Merged
Merged
Conversation
Member
|
geoffg-sentry
marked this pull request as ready for review
October 30, 2025 19:55
Caveman432
approved these changes
Nov 10, 2025
geoffg-sentry
force-pushed
the
resource-validation
branch
from
December 29, 2025 15:30
faa7dd8 to
3cdd496
Compare
Member
dcramer
added a commit
that referenced
this pull request
Feb 27, 2026
Fixes some CORS issues around /oauth/register and /oauth/token, but any endpoints really. I broke CORS stripping into its own utility so we can strip reflected-origin CORS on all non-metadata responses and a handful of tests to help verify. To abuse this you'd need to phish an end user with a malicious client and #608 already helped highlight that risks during authorization, so this is just some defense in depth. --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: David Cramer <dcramer@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
dcramer
pushed a commit
that referenced
this pull request
Jun 12, 2026
Rejecting userinfo components from redirect_uri's. I had specifically considered it during #608 but opted to allow them since it was still early in adoption. We've seen no benefit from having them since, so rejecting them outright now to save on phishing attempts. Also updating the consent description to call out the true host that you're being redirected to. That way something like `https://mcp.sentry.dev.supersus.com/callback` in the longer redirect_uri will prominently display as `suspersus.com` in the sentence description. Just a free thing to add, harmless depth of awareness.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Follow MCP and OAuth specs and perform resource parameter validation during token issuance and token acceptance