Skip to content

🛡️ Sentinel: [HIGH] Harden OAuth Callback URL Sanitization against Open Redirects - #328

Merged
nathfavour merged 2 commits into
masterfrom
sentinel/oauth-redirect-hardening-6656873193336107050
Nov 8, 2026
Merged

nathfavour merged 2 commits into
masterfrom
sentinel/oauth-redirect-hardening-6656873193336107050

Conversation

@nathfavour

Copy link
Copy Markdown
Member

Harden OAuth callback URL sanitization in app/api/auth/oauth/[provider]/route.ts against Open Redirect vulnerabilities using WHATWG URL parsing and strict origin validation. Relocate unit tests to app/api/auth/oauth/[provider]/oauth-route.test.ts to ensure clean relative module resolution.


PR created automatically by Jules for task 6656873193336107050 started by @nathfavour

…directs

Co-authored-by: nathfavour <116535483+nathfavour@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

…el/oauth-redirect-hardening-6656873193336107050

# Conflicts:
#	app/api/auth/oauth/[provider]/route.ts

Co-authored-by: nathfavour <116535483+nathfavour@users.noreply.github.com>
@nathfavour
nathfavour merged commit b441b7f into master Nov 8, 2026
@nathfavour
nathfavour deleted the sentinel/oauth-redirect-hardening-6656873193336107050 branch November 8, 2026 09:40
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.

2 participants