GHSA-qwww-vcr4-c8h2: React Router RSC Mode CSRF Bypass Allows Vulnerability
HIGHGHSA-qwww-vcr4-c8h2 is a HIGH rsc mode csrf bypass allows vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting React Router libraries in the npm ecosystem. The issue involves rsc mode csrf bypass allows action execution before 400 response. Remediation is available by upgrading affected packages to version 7.18.2, 8.3.0.
GHSA-qwww-vcr4-c8h2 at a Glance
How to Fix GHSA-qwww-vcr4-c8h2
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.2
npm install react-router@8.3.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 GHSA-qwww-vcr4-c8h2, 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.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-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
GHSA-qwww-vcr4-c8h2 Affected React Router Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
react-router
|
npm |
≥ 7.12.0
< 7.18.2
|
7.18.2
|
|
react-router
|
npm |
≥ 8.0.0
< 8.3.0
|
8.3.0
|
References
Frequently Asked Questions
What is GHSA-qwww-vcr4-c8h2?
Which React Router versions are affected?
What version fixes GHSA-qwww-vcr4-c8h2?
Is react-router affected?
What CWE is associated with GHSA-qwww-vcr4-c8h2?
How can I check npm dependencies for GHSA-qwww-vcr4-c8h2?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qwww-vcr4-c8h2",
"modified" : "2026-08-07T18:16:54Z",
"published" : "2026-07-24T16:44:43Z",
"aliases" : [ ],
"summary" : "React Router: RSC Mode CSRF Bypass Allows Action Execution Before 400 Response",
"details" : "This is a follow up to CVE-2026-22030 to address related CSRF flows in unstable RSC code paths.\n\n> [!NOTE]\n> This only affects your application if you are using the unstable RSC APIs",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/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.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "react-router"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0.0"
}, {
"fixed" : "8.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/security/advisories/GHSA-qwww-vcr4-c8h2"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/pull/15353"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/commit/7a71c728ad116bd78699a258b2014ce9585729f5"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/commit/8ebd5df9932854547963e3255c8454e62430e05d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/remix-run/react-router"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v830"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7182"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/releases/tag/react-router%407.18.2"
}, {
"type" : "WEB",
"url" : "https://github.com/remix-run/react-router/releases/tag/react-router@8.3.0"
}, {
"type" : "WEB",
"url" : "http://github.com/remix-run/react-router/pull/15311"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-24T16:44:43Z",
"nvd_published_at" : null
}
}