React Router and Remix CSRF Vulnerability in POST Document Requests
Vulnerability
A Cross-Site Request Forgery (CSRF) vulnerability has been identified in React Router (versions 7.0.0 to 7.11.0) and in @remix-run/server-runtime (versions prior to 2.17.3). This vulnerability occurs in React Router when server-side route action handlers are used in Framework Mode, or when React Server Actions are employed in the unstable RSC modes. The issue arises on document POST requests to UI routes, creating a risk of CSRF attacks. However, applications using Declarative Mode with <BrowserRouter> or Data Mode with createBrowserRouter/<RouterProvider> are not affected.
Impact
Exploitation of this vulnerability allows for CSRF attacks on document POST requests to UI routes, potentially leading to unauthorized actions being performed on behalf of the user.
Remediation
Users can upgrade to @remix-run/server-runtime version 2.17.3 or react-router version 7.12.0 to address this vulnerability.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
