Cross-site Request Forgery (CSRF) Affecting react-router package, versions >=7.0.0 <7.12.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-REACTROUTER-14908429
  • published9 Jan 2026
  • disclosed8 Jan 2026
  • creditOceandust

Introduced: 8 Jan 2026

CVE-2026-22030  (opens in a new tab)
CWE-346  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade react-router to version 7.12.0 or higher.

Overview

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) due to the improper origin checks of UI route submissions in server-side route action handlers in Framework Mode. An attacker can execute unauthorized actions by tricking a user into submitting a crafted POST request to a UI route.

Note:

This issue does not impact applications using Declarative Mode <BrowserRouter> or Data Mode createBrowserRouter/<RouterProvider>.

References

CVSS Base Scores

version 4.0
version 3.1