Skip to content

Refactor: React Router vulnerable to XSS via Open Redirects #9003

Closed

Description

@AlexeyGirin

React Router (and Remix v1/v2) SPA open navigation redirects originating from loaders or actions in Framework Mode, Data Mode, or the unstable RSC modes can result in unsafe URLs causing unintended javascript execution on the client. This is only an issue if developers are creating redirect paths from untrusted content or via an open redirect.

Note

This does not impact applications that use Declarative Mode (<BrowserRouter>).

Solution: Update react-router library to the latest possible version

Activity

  1. added a commit that references this issue on Jan 26, 2026
  2. added 2 commits that reference this issue on Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Priority: LowSeverity: LowLow level visibility to the userSonarBucket: Issues found by Sonar scanner

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions