MediumGHSA-8wpx-2pj4-ggvxCVE-2026-139999

React Router: Cross-scheme CSRF bypass in Origin validation

Published 1 Dec 2026 · Updated 1 Dec 2026

Affected packages

Affected
>=7.12.0 <7.18.3
Fixed in
7.18.3
Update to the fixed version for your release line, for example:npm install react-router@7.18.3
Affected
>=8.0.0 <8.3.1
Fixed in
8.3.1
Update to the fixed version for your release line, for example:npm install react-router@8.3.1

We confirm your address first. See our privacy policy.

Which react-router does your project really install?

Drop your package-lock.json hereWe find the exact react-router version you install, even when another package pulls it in, and tell you if it’s affected and what to run. Free, no sign-up.

Works for private projects: the file is read in memory to run the scan and then dropped. Also reads yarn.lock, pnpm-lock.yaml or package.json.

Public repo?

Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Details

A flaw in React Router’s server-side origin validation may allow cross-site request forgery under certain deployment and session configurations, potentially enabling unauthorized actions on behalf of authenticated users.

Affected Modes: Framework, RSC Data (unstable), and RSC Framework (unstable).

Exploitation depends on the application’s deployment, authentication cookie configuration, and use of server-side actions.

Is GHSA-8wpx-2pj4-ggvx in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected react-router, and gives you the command that fixes it.

More advisories for react-router

  • HighCVE-2026-139998React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling · 1 Dec 2026
  • MediumCVE-2026-139997React Router: Open redirect via tab character in redirect() paths — bypass of the CVE-2026-53669 / CVE-2026-40181 normalization · 1 Dec 2026
  • HighCVE-2026-139995React Router: Unauthenticated denial of service via unbounded route-manifest path expansion during SSR document rendering · 1 Dec 2026
  • HighCVE-2026-139996React Router: Prototype Pollution via Vendored turbo-stream Deserializer · 1 Dec 2026
  • MediumCVE-2026-139994React Router: Cross-site Scripting due to escapeHtml use in meta refresh HTML attributes · 1 Dec 2026
  • HighGHSA-qwww-vcr4-c8h2React Router: RSC Mode CSRF Bypass Allows Action Execution Before 400 Response · 24 Jul 2026
All 26 advisories for react-router

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.