VDB
Sign up
HIGH8.0

GHSA-2w69-qvjg-hvjx

React Router vulnerable to XSS via Open Redirects

Quick fix

GHSA-2w69-qvjg-hvjx — react-router: upgrade to the fixed version with the command below.

npm install react-router@7.12.0

Details

React Router (and Remix v1/v2) SPA open navigation redirects originating from loaders or actions in [Framework Mode](https://reactrouter.com/start/modes#framework), [Data Mode](https://reactrouter.com/start/modes#data), 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](https://reactrouter.com/start/modes#declarative) (`<BrowserRouter>`).

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/react-router
Introduced in: 7.0.0Fixed in: 7.12.0
Fixnpm install react-router@7.12.0
npm/@remix-run/router
Introduced in: 0Fixed in: 1.23.2
Fixnpm install @remix-run/router@1.23.2

References