GitHub advisory · npm
React Router: Cross-scheme CSRF bypass in Origin validation
Description
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.
Manual fix · npm
npm install react-router@7.18.3Sources