Packages / react-router / Security
ModerateVulnerabilityGHSA-h5cw-625j-3rxhCVE-2026-22030Published 8 Jan 2026
React Router has CSRF issue in Action/Server Action Request Processing
Affected releases · react-router
- 7.x7.0.0 – 7.11.0Fixed in 7.12.0
On 7.x, the newest line:
npm install react-router@7.12.08.x
Not affected
8.0.0 – 8.5.0
8 releases, latest
7.x
Affected
7.0.0 – 7.11.0
36 releases
Fixed
7.12.0 – 7.18.4
16 releases
Is your project affected?
Paste your package.json, or type the range you declare for react-router. It is read in your browser and sent nowhere.
What happens
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, 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 (
<BrowserRouter>) or Data Mode (createBrowserRouter/<RouterProvider>).