MediumGHSA-h5cw-625j-3rxhCVE-2026-22030
React Router has CSRF issue in Action/Server Action Request Processing
Published 8 Jan 2026 · Updated 10 Sept 2026
Affected packages
react-routernpm
- Affected
- >=7.0.0 <7.12.0
- Fixed in
- 7.12.0
Update to the fixed version for your release line, for example:
npm install react-router@7.12.0- Affected
- <2.17.3
- Fixed in
- 2.17.3
Update to the fixed version for your release line, for example:
npm install @remix-run/server-runtime@2.17.3Details
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>).
Is GHSA-h5cw-625j-3rxh in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected react-router, and gives you the command that fixes it.
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.