CVE-2026-139999: React Router Cross-scheme CSRF Bypass Vulnerability
MODERATECVE-2026-139999 is a MODERATE cross-scheme csrf bypass vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting React Router libraries in the npm ecosystem. The issue involves cross-scheme csrf bypass in origin validation. Remediation is available by upgrading affected packages to version 7.18.3, 8.3.1.
CVE-2026-139999 at a Glance
How to Fix CVE-2026-139999
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.
npm install react-router@7.18.3
npm install react-router@8.3.1
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-139999, 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.18.3), 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-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. 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
CVE-2026-139999 Affected React Router Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
react-router
|
npm |
≥ 7.12.0
< 7.18.3
|
7.18.3
|
|
react-router
|
npm |
≥ 8.0.0
< 8.3.1
|
8.3.1
|
References
Frequently Asked Questions
What is CVE-2026-139999?
Which React Router versions are affected?
What version fixes CVE-2026-139999?
Is react-router affected?
What CWE is associated with CVE-2026-139999?
How can I check npm dependencies for CVE-2026-139999?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8wpx-2pj4-ggvx",
"modified" : "2026-12-01T18:27:30Z",
"published" : "2026-12-01T18:27:30Z",
"aliases" : [ "CVE-2026-139999" ],
"summary" : "React Router: Cross-scheme CSRF bypass in Origin validation",
"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.\n\n**Affected Modes:** Framework, RSC Data (unstable), and RSC Framework (unstable).\n\nExploitation depends on the application’s deployment, authentication cookie configuration, and use of server-side actions.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "react-router"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.12.0"
}, {
"fixed" : "7.18.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "react-router"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/security/advisories/GHSA-8wpx-2pj4-ggvx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-139999"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/pull/15419"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/pull/15420"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/commit/c091832969928593bf9f7d56d1b371bd0f6d5412"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/commit/e4b70d65d0188846baf0f1dad4bb05f6781186ea"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/remix-run/react-router"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v831"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7183"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/releases/tag/react-router@7.18.3"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/releases/tag/react-router@8.3.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-01T18:27:30Z",
"nvd_published_at" : "2026-11-30T22:17:29Z"
}
}