CVE-2026-53667: React Router Cross-Site Scripting Vulnerability
MODERATECVE-2026-53667 is a MODERATE (CVSS 6.9) 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 rscerrorhandler missing protocol validation (xss). Remediation is available by upgrading affected packages to version 7.18.0.
CVE-2026-53667 at a Glance
Security Impact
CVSS: 6.9
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:L/A:N).
How to Fix CVE-2026-53667
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.0
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-53667, 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.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
CVE-2026-53667 Affected React Router Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
react-router
|
npm |
≥ 7.11.0
< 7.18.0
|
7.18.0
|
References
Frequently Asked Questions
What is CVE-2026-53667?
Which React Router versions are affected?
What version fixes CVE-2026-53667?
Is react-router affected?
What is the CVSS score of CVE-2026-53667?
What CWE is associated with CVE-2026-53667?
How can I check npm dependencies for CVE-2026-53667?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h8fp-f39c-q6mh",
"modified" : "2026-07-23T19:35:57Z",
"published" : "2026-07-23T19:35:57Z",
"aliases" : [ "CVE-2026-53667" ],
"summary" : "React Router: RSCErrorHandler Missing Protocol Validation (XSS)",
"details" : "This is a follow up to https://github.com/remix-run/react-router/security/advisories/GHSA-8646-j5j9-6r62. React Router was alerted of a code path in the (unstable) RSC error handling path in which redirects from untrusted sources could still result in an XSS vector via attacker-supplied redirect targets\n\n> [!NOTE]\n> This only affects your application if you are using the unstable RSC APIs",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "react-router"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.11.0"
}, {
"fixed" : "7.18.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/security/advisories/GHSA-h8fp-f39c-q6mh"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/pull/15177"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/commit/ce596e823f0d7b883a433af1d5a839a8b9fe0242"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/remix-run/react-router"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7180"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/releases/tag/react-router@7.18.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-23T19:35:57Z",
"nvd_published_at" : null
}
}