Skip to content

Fix open redirect in Plex and OIDC login flows - #7

Merged
Navino16 merged 2 commits into
developfrom
fix/security-alerts
Mar 17, 2026
Merged

Navino16 merged 2 commits into
developfrom
fix/security-alerts

Conversation

@Navino16

@Navino16 Navino16 commented Mar 17, 2026

Copy link
Copy Markdown
Owner

Description

Fix unvalidated URL redirect in Plex and OIDC login flows by using the existing safeReturnUrl helper (which rejects non-relative URLs and // prefixes).

Also dismissed CodeQL alert 12 (Missing CSRF) as false positive — custom Origin/Referer validation middleware is already in place (server/index.ts:139-171) combined with SameSite=Lax cookies.

Fixes

  • 2 / 15: Plex login returnUrl was not validated, allowing open redirect / XSS
  • 12: Dismissed as false positive (CSRF protection exists)
  • OIDC login returnUrl also secured (same pattern)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactoring
  • Dependencies update

Checklist

  • I have tested my changes locally
  • I have added/updated tests if needed
  • Code coverage is maintained or improved
  • Lint passes (npm run lint)
  • Tests pass (npm test)

Related Issues

@Navino16 Navino16 added the bug Something isn't working label Mar 17, 2026
@codecov-commenter

codecov-commenter commented Mar 17, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Navino16
Navino16 merged commit de996c0 into develop Mar 17, 2026
4 checks passed
@Navino16
Navino16 deleted the fix/security-alerts branch March 17, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants