Is react-router 7.2 vulnerable?

npm · 1 release from 7.2.0 to 7.2.0 · latest react-router is 8.5.1 · checked 1 Nov 2026

Yes: 14 known advisories

Yes. react-router 7.2.0, the last 7.2 release, is affected by 14 known security advisories (9 high, 5 medium), including CVE-2026-55685, CVE-2026-34077, CVE-2026-42342. Upgrade to 7.18.0 or later to fix all of them.

Upgrade with:npm install react-router@7.18.0

Is your project affected?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Advisories affecting react-router 7.2.0

  • HighCVE-2026-55685GHSA-chx6-hx7r-mcp524 Jul 2026

    React Router: Unauthenticated Denial of Service via Inefficient Route Matching

    Affected
    >=7.0.0 <7.18.0
    Fixed in
    7.18.0
  • MediumCVE-2026-53669GHSA-wrjc-x8rr-h8h623 Jul 2026

    React Router: Open redirect via backslash in <Link> and useNavigate (CVE-2025-68470 bypass)

    Affected
    >=6.0.0 <7.18.0
    Fixed in
    7.18.0
  • MediumCVE-2026-53666GHSA-337j-9hxr-rhxg23 Jul 2026

    React Router: Arbitrary Constructor Injection via deserializeErrors() in React Router SSR Hydration

    Affected
    >=6.4.0 <7.18.0
    Fixed in
    7.18.0
  • HighCVE-2026-34077GHSA-rxv8-25v2-qmq84 Jun 2026

    React Router vulnerable to Denial of Service via reflected user input in single-fetch

    Affected
    >=7.0.0 <7.14.0
    Fixed in
    7.14.0
  • HighCVE-2026-42342GHSA-8x6r-g9mw-2r783 Jun 2026

    React Router vulnerable to DoS via unbounded path expansion in __manifest endpoint

    Affected
    >=7.0.0 <7.15.0
    Fixed in
    7.15.0
  • HighCVE-2026-42211GHSA-49rj-9fvp-4h2h3 Jun 2026

    React Router's vendored turbo-stream v2 allows arbitrary constructor invocation via TYPE_ERROR deserialization leading to Unauth RCE

    Affected
    >=7.0.0 <7.14.2
    Fixed in
    7.14.2
  • MediumCVE-2026-40181GHSA-2j2x-hqr9-3h423 Jun 2026

    React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation

    Affected
    >=7.0.0 <7.14.1 · >=6.7.0 <6.30.4
    Fixed in
    6.30.4, 7.14.1
  • MediumCVE-2026-22030GHSA-h5cw-625j-3rxh8 Jan 2026

    React Router has CSRF issue in Action/Server Action Request Processing

    Affected
    >=7.0.0 <7.12.0
    Fixed in
    7.12.0
  • HighCVE-2026-22029GHSA-2w69-qvjg-hvjx8 Jan 2026

    React Router vulnerable to XSS via Open Redirects

    Affected
    >=7.0.0 <7.12.0
    Fixed in
    7.12.0
  • HighCVE-2026-21884GHSA-8v8x-cx79-35w78 Jan 2026

    React Router SSR XSS in ScrollRestoration

    Affected
    >=7.0.0 <7.12.0
    Fixed in
    7.12.0
  • MediumCVE-2025-68470GHSA-9jcx-v3wj-wh4m8 Jan 2026

    React Router has unexpected external redirect via untrusted paths

    Affected
    >=6.0.0 <6.30.2 · >=7.0.0 <7.9.6
    Fixed in
    6.30.2, 7.9.6
  • HighCVE-2025-59057GHSA-3cgp-3xvw-98x88 Jan 2026

    React Router has XSS Vulnerability

    Affected
    >=7.0.0 <7.9.0
    Fixed in
    7.9.0
  • HighCVE-2025-43865GHSA-cpj6-fhp6-mr6j24 Apr 2025

    React Router allows pre-render data spoofing on React-Router framework mode

    Affected
    >=7.0.0-pre.0 <7.5.2
    Fixed in
    7.5.2
  • HighCVE-2025-43864GHSA-f46r-rw29-r32224 Apr 2025

    React Router allows a DoS via cache poisoning by forcing SPA mode

    Affected
    >=7.2.0 <7.5.2
    Fixed in
    7.5.2

Which of your client projects are still on react-router 7.2?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact react-router version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other react-router versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the npm registry. Refreshed daily.