CVE-2026-42211: React router Remote Code Execution Vulnerability
HIGHCVE-2026-42211 is a HIGH (CVSS 8.1) remote code execution vulnerability (CWE-502: Deserialization of Untrusted Data) affecting React router libraries in the npm ecosystem. The issue involves react router's vendored turbo-stream v2 allows arbitrary constructor invocation via type_error deserialization leading to unauth rce. Remediation is available by upgrading affected packages to version 7.14.2.
CVE-2026-42211 at a Glance
Security Impact
CVSS: 8.1
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:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-42211
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.14.2
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-42211, 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.14.2), 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-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. 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-42211 Affected React router Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
react-router
|
npm |
≥ 7.0.0
< 7.14.2
|
7.14.2
|
References
Frequently Asked Questions
What is CVE-2026-42211?
Which React router versions are affected?
What version fixes CVE-2026-42211?
Is react-router affected?
What is the CVSS score of CVE-2026-42211?
What CWE is associated with CVE-2026-42211?
How can I check npm dependencies for CVE-2026-42211?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-49rj-9fvp-4h2h",
"modified" : "2026-06-03T21:03:32Z",
"published" : "2026-06-03T21:03:32Z",
"aliases" : [ "CVE-2026-42211" ],
"summary" : "React Router's vendored turbo-stream v2 allows arbitrary constructor invocation via TYPE_ERROR deserialization leading to Unauth RCE",
"details" : "When using React Router v7 in [Framework Mode](https://reactrouter.com/start/modes#framework), there exists a combination of steps that could potentially allow unauthorized RCE through external requests. This first requires the application code to have an existing prototype pollution vulnerability. This can be leveraged into a 2-step attack in which the second step can trigger unauthorized RCE on the remote server.\n\n> [!NOTE]\n> This does not impact your React Router application if you are using [Declarative Mode](https://reactrouter.com/start/modes#declarative) (`<BrowserRouter>`) or [Data Mode](https://reactrouter.com/start/modes#data) (`createBrowserRouter`/`<RouterProvider>`).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "react-router"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.14.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 7.14.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/security/advisories/GHSA-49rj-9fvp-4h2h"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42211"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/remix-run/react-router"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-03T21:03:32Z",
"nvd_published_at" : "2026-06-02T20:16:36Z"
}
}