CVE-2026-22030: React router React Router Has CSRF Issue Vulnerability

MODERATE
Advisory Identifier: GHSA-h5cw-625j-3rxh
CVSS 6.5
CWE-346 CWE-352
Published
Advisory Summary

CVE-2026-22030 is a MODERATE (CVSS 6.5) react router has csrf issue vulnerability (CWE-346: Origin Validation Error) affecting React router libraries in the npm ecosystem. The issue involves react router has csrf issue in action/server action request processing. Remediation is available by upgrading affected packages to version 7.12.0, 2.17.3.

CVE-2026-22030 at a Glance

CVE Identifier CVE-2026-22030
GHSA Identifier GHSA-h5cw-625j-3rxh
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-346: Origin Validation Error
Affected Product React router
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-22030

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.12.0
npm install react-router@7.12.0
@remix-run/server-runtime fixed: 2.17.3
npm install @remix-run/server-runtime@2.17.3
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 CVE-2026-22030, 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.12.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-346: Origin Validation Error, where the product does not properly verify that the source of data or communication is 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

React Router (or Remix v2) is vulnerable to CSRF attacks on document POST requests to UI routes when using server-side route `action` handlers in [Framework Mode](https://reactrouter.com/start/modes#framework), or when using React Server Actions in the new unstable RSC modes. > [!NOTE] > This does not impact your 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>`).

CVE-2026-22030 Affected React router Versions

2 component(s)
Fixed Versions:
7.12.02.17.3
Product / Package Ecosystem Affected Versions Fixed Version
react-router
npm
≥ 7.0.0
< 7.12.0
7.12.0
@remix-run/server-runtime
npm
< 2.17.3
2.17.3

References

Frequently Asked Questions

What is CVE-2026-22030?
CVE-2026-22030 is a security vulnerability in React router involving React Router has CSRF issue in Action/Server Action Request Processing under CWE-346: Origin Validation Error.
Which React router versions are affected?
Affected versions include releases prior to 7.12.0, 2.17.3 across affected packages: react-router, @remix-run/server-runtime.
What version fixes CVE-2026-22030?
Upgrading to 7.12.0, 2.17.3 (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.12.0. Upgrade your dependency to 7.12.0 or later.
Is @remix-run/server-runtime affected?
Yes, @remix-run/server-runtime is affected in releases prior to 2.17.3. Upgrade your dependency to 2.17.3 or later.
What is the CVSS score of CVE-2026-22030?
CVE-2026-22030 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2026-22030?
CVE-2026-22030 is classified under CWE-346: Origin Validation Error (The product does not properly verify that the source of data or communication is valid.).
How can I check npm dependencies for CVE-2026-22030?
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-h5cw-625j-3rxh",
  "modified" : "2026-06-09T10:31:49Z",
  "published" : "2026-01-08T20:57:09Z",
  "aliases" : [ "CVE-2026-22030" ],
  "summary" : "React Router has CSRF issue in Action/Server Action Request Processing",
  "details" : "React Router (or Remix v2) is vulnerable to CSRF attacks on document POST requests to UI routes when using server-side route `action` handlers in [Framework Mode](https://reactrouter.com/start/modes#framework), or when using React Server Actions in the new unstable RSC modes.\n\n> [!NOTE]\n> This does not impact your 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:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "react-router"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.12.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.11.0"
    }
  }, {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@remix-run/server-runtime"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.17.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.17.2"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/remix-run/react-router/security/advisories/GHSA-h5cw-625j-3rxh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-22030"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/remix-run/react-router"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-346", "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-01-08T20:57:09Z",
    "nvd_published_at" : "2026-01-10T03:15:49Z"
  }
}