React Router vulnerable to XSS via Open Redirects
remix-run react-router · remix-run @remix-run/router
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| react-router npm |
|
|
| @remix-run/router npm |
|
|
remix-run react-router · remix-run @remix-run/router
| Product | Affected | Fixed in |
|---|---|---|
| react-router npm |
|
|
| @remix-run/router npm |
|
|
React Router is a router for React. In @remix-run/router version prior to 1.23.2 and react-router 7.0.0 through 7.11.0, 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 you are creating redirect paths from untrusted content or via an open redirect. There is no impact if Declarative Mode (<BrowserRouter>) is being used. This issue has been patched in @remix-run/router version 1.23.2 and react-router version 7.12.0.
From the CVE record · GitHub_M
In affected React Router and @remix-run/router versions, SPA navigation redirects from loaders or actions can cause unintended JavaScript execution in the client. This requires redirect paths derived from untrusted content or an open redirect in Framework Mode, Data Mode, or unstable RSC modes; Declarative Mode using <BrowserRouter> is not affected.
Check applications using react-router 7.0.0 through 7.11.0 or @remix-run/router versions before 1.23.2, including affected React Router and Remix v1/v2 applications.