CVE-2026-139999: React Router: Cross-scheme CSRF bypass in Origin validation
React Router is a router for React. From 7.12.0 until 7.18.3 and 8.3.1, React Router's server-side origin validation may allow cross-site request forgery in Framework, unstable RSC Data, and unstable RSC Framework modes. Exploitation depends on the application's deployment, authentication cookie configuration, and use of server-side actions, and can enable unauthorized actions on behalf of authenticated users. This issue is fixed in versions 7.18.3 and 8.3.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 7.18.3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.3.1
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Applications using React Router Framework, unstable RSC Data, or unstable RSC Framework modes may be affected if they use a vulnerable release. Exposure also depends on the deployment model, authentication cookie configuration, and whether the application uses server-side actions.
What does an attacker need to exploit the vulnerability?
The issue can enable cross-site request forgery against authenticated users, allowing unauthorized actions to be performed on their behalf. Practical exploitation depends on the application's deployment and cookie settings, as well as its use of server-side actions.
Which versions contain the fix?
The issue is fixed in React Router 7.18.3 and 8.3.1. Versions from 7.12.0 through releases before 7.18.3, as well as affected 8.x releases before 8.3.1, are described as vulnerable.