CSRF bypass in server-side actions
Summary
A flaw in React Router’s server-side origin validation may allow cross-site request forgery under certain deployment and session configurations, potentially enabling unauthorized actions on behalf of authenticated users.
Affected Modes: Framework, RSC Data (unstable), and RSC Framework (unsta...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmreact-router |
>=7.12.0, <7.18.3→ 7.18.3 |
7.18.3 |
| npmreact-router |
>=8.0.0, <8.3.1→ 8.3.1 |
8.3.1 |
Original description The description as published by the source.
A flaw in React Router’s server-side origin validation may allow cross-site request forgery under certain deployment and session configurations, potentially enabling unauthorized actions on behalf of authenticated users.
Affected Modes: Framework, RSC Data (unstable), and RSC Framework (unstable).
Exploitation depends on the application’s deployment, authentication cookie configuration, and use of server-side actions.
Source: GitHub Repository Security Advisories (Game のスタック) GitHub Advisory OSV
References
- GITHUB_REPO_ADVISORY remix-run/react-router