CVE-2026-22029: React router Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-2w69-qvjg-hvjx
CVSS 8.0
CWE-79
Published
Advisory Summary

CVE-2026-22029 is a HIGH (CVSS 8.0) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting React router libraries in the npm ecosystem. The issue involves react router vulnerable to xss via open redirects. Remediation is available by upgrading affected packages to version 7.12.0, 1.23.2.

CVE-2026-22029 at a Glance

CVE Identifier CVE-2026-22029
GHSA Identifier GHSA-2w69-qvjg-hvjx
Severity HIGH
CVSS v3.1 Base Score 8.0
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product React router
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-22029

To remediate this vulnerability, upgrade all affected React router dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

react-router fixed: 7.12.0
npm install react-router@7.12.0
@remix-run/router fixed: 1.23.2
npm install @remix-run/router@1.23.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls react-router

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-22029, inspect your project dependencies using npm:

npm ls react-router

Analyze the terminal output to locate any version of React router in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.12.0), your application is affected.

Note: The npm ls react-router command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In React router, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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>`).

CVE-2026-22029 Affected React router Versions

2 component(s)
Fixed Versions:
7.12.01.23.2
Product / Package Ecosystem Affected Versions Fixed Version
react-router
npm
≥ 7.0.0
< 7.12.0
7.12.0
@remix-run/router
npm
< 1.23.2
1.23.2

References

Frequently Asked Questions

What is CVE-2026-22029?
CVE-2026-22029 is a security vulnerability in React router involving React Router vulnerable to XSS via Open Redirects under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which React router versions are affected?
Affected versions include releases prior to 7.12.0, 1.23.2 across affected packages: react-router, @remix-run/router.
What version fixes CVE-2026-22029?
Upgrading to 7.12.0, 1.23.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is react-router affected?
Yes, react-router is affected in releases prior to 7.12.0. Upgrade your dependency to 7.12.0 or later.
Is @remix-run/router affected?
Yes, @remix-run/router is affected in releases prior to 1.23.2. Upgrade your dependency to 1.23.2 or later.
What is the CVSS score of CVE-2026-22029?
CVE-2026-22029 has a CVSS v3.1 base score of 8.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-22029?
CVE-2026-22029 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2026-22029?
Run the dependency tree command: 'npm ls react-router'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2w69-qvjg-hvjx",
  "modified" : "2026-01-11T14:54:13Z",
  "published" : "2026-01-08T20:54:18Z",
  "aliases" : [ "CVE-2026-22029" ],
  "summary" : "React Router vulnerable to XSS via Open Redirects",
  "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.\n\n> [!NOTE]\n> This does not impact applications that use [Declarative Mode](https://reactrouter.com/start/modes#declarative) (`<BrowserRouter>`).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "react-router"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.12.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.11.0"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@remix-run/router"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.23.2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.23.1"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/remix-run/react-router/security/advisories/GHSA-2w69-qvjg-hvjx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-22029"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/remix-run/react-router"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-08T20:54:18Z",
    "nvd_published_at" : "2026-01-10T03:15:48Z"
  }
}