CVE-2026-139997: React Router Open Redirect Vulnerability
MODERATECVE-2026-139997 is a MODERATE open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting React Router libraries in the npm ecosystem. The issue involves open redirect via tab character in redirect() paths — bypass of the cve-2026-53669 / cve-2026-40181 normalization. Remediation is available by upgrading affected packages to version 7.18.3, 8.3.1.
CVE-2026-139997 at a Glance
How to Fix CVE-2026-139997
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-139997, 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. 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-139997 Affected React Router Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
react-router
|
npm |
≥ 6.4.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-139997?
Which React Router versions are affected?
What version fixes CVE-2026-139997?
Is react-router affected?
What CWE is associated with CVE-2026-139997?
How can I check npm dependencies for CVE-2026-139997?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7m2v-44vx-v55w",
"modified" : "2026-12-01T18:25:22Z",
"published" : "2026-12-01T18:25:22Z",
"aliases" : [ "CVE-2026-139997" ],
"summary" : "React Router: Open redirect via tab character in redirect() paths — bypass of the CVE-2026-53669 / CVE-2026-40181 normalization",
"details" : "Improper redirect URL handling in React Router may allow applications using untrusted redirect destinations to send users to attacker-controlled websites, potentially facilitating phishing attacks.\n\n**Affected Modes:** Data, Framework, RSC Data (unstable), and RSC Framework (unstable).\n\nExploitation requires an application to use attacker-controlled input as a redirect destination.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "react-router"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.4.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-7m2v-44vx-v55w"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-139997"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/pull/15445"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/pull/15446"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/commit/2e0bf721591e218611841242ad4077111663f7f5"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/commit/38af67f5cada15f0f540c597929a1b08022b46a5"
}, {
"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-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-01T18:25:22Z",
"nvd_published_at" : "2026-11-30T22:17:28Z"
}
}