Skip to content

Conversation

@niklaswallerstedt
Copy link

Fix redirect URI security vulnerability

Resolves #299

Fixes malformed URL bypass vulnerability where redirect_uri=https:evil.com could redirect to external domains. The fix ensures proper validation and returns HTTP 400 for
invalid redirect URIs.

Also adds comprehensive security documentation explaining the default behavior and providing guidance for implementing stricter per-client validation in production environments.

@niklaswallerstedt niklaswallerstedt force-pushed the fix/redirect-uri-security-and-docs branch 2 times, most recently from 2d664d2 to 2d77dfc Compare October 21, 2025 09:08
@niklaswallerstedt niklaswallerstedt marked this pull request as ready for review October 21, 2025 09:09
@niklaswallerstedt niklaswallerstedt marked this pull request as draft October 21, 2025 13:31
@niklaswallerstedt niklaswallerstedt marked this pull request as ready for review October 21, 2025 16:07
@niklaswallerstedt niklaswallerstedt force-pushed the fix/redirect-uri-security-and-docs branch 3 times, most recently from 36ca824 to ed24743 Compare October 26, 2025 07:50
Fix malformed URL bypass where for instance redirect_uri=https:evil.com could redirect to external domains. Returns HTTP 400 for invalid redirect URIs based on default allow hook.
@niklaswallerstedt niklaswallerstedt force-pushed the fix/redirect-uri-security-and-docs branch from ed24743 to a1c5cfa Compare October 26, 2025 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Critical: Open redirect due to missing redirect_uri validation

1 participant