React Router: `handleDocumentRequest` CSRF check covers `POST` only; PUT/PATCH/DELETE bypass
remix-run react-router · @remix-run server-runtime
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| react-router npm |
|
|
| @remix-run/server-runtime npm |
|
|
remix-run react-router · @remix-run server-runtime
| Product | Affected | Fixed in |
|---|---|---|
| react-router npm |
|
|
| @remix-run/server-runtime npm |
|
|
React Router is a router for React. From 7.12.0 until 7.15.1, certain CSRF checks in React Router v7 Framework Mode were insufficient and run on POST requests, but were bypassed on PUT/PATCH/DELETE requests. This is a low severity vulnerability because modern browser protections (CORS preflight, SameSite cookies) already block the cross-origin attack vectors that this missing CSRF check would otherwise gate. This vulnerability is fixed in 7.15.1.
From the CVE record · GitHub_M
In React Router v7 Framework Mode, certain CSRF checks run on POST requests but can be bypassed on PUT, PATCH, and DELETE requests. This could permit a cross-origin attack where browser protections such as CORS preflight and SameSite cookies do not block it; the input does not specify authentication or user-interaction requirements.
Teams running npm react-router versions >=7.12.0 <7.15.1 or @remix-run/server-runtime versions >=2.17.3 <2.17.5 should check their deployments.