GHSA-qwww-vcr4-c8h2: React Router RSC Mode CSRF Bypass Allows Vulnerability

HIGH
CWE-352
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-qwww-vcr4-c8h2
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product React Router
Package Ecosystem npm
Published Date
Last Updated

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.

react-router fixed: 7.18.2
npm install react-router@7.18.2
react-router fixed: 8.3.0
npm install react-router@8.3.0
Verify Direct and Transitive Dependencies

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

This is a follow up to CVE-2026-22030 to address related CSRF flows in unstable RSC code paths. > [!NOTE] > This only affects your application if you are using the unstable RSC APIs

GHSA-qwww-vcr4-c8h2 Affected React Router Versions

2 component(s)
Fixed Versions:
7.18.28.3.0
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?
GHSA-qwww-vcr4-c8h2 is a security vulnerability in React Router involving RSC Mode CSRF Bypass Allows Action Execution Before 400 Response under CWE-352: Cross-Site Request Forgery (CSRF).
Which React Router versions are affected?
Affected versions include releases prior to 7.18.2, 8.3.0 across affected packages: react-router.
What version fixes GHSA-qwww-vcr4-c8h2?
Upgrading to 7.18.2, 8.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is react-router affected?
Yes, react-router is affected in releases prior to 7.18.2, 8.3.0. Upgrade your dependency to 7.18.2, 8.3.0 or later.
What CWE is associated with GHSA-qwww-vcr4-c8h2?
GHSA-qwww-vcr4-c8h2 is classified under CWE-352: Cross-Site Request Forgery (CSRF) (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.).
How can I check npm dependencies for GHSA-qwww-vcr4-c8h2?
Run the dependency tree command: 'npm ls react-router'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}