CVE-2025-43865
CVE-2025-43865 · React Router allows pre-render data spoofing on React-Router framework mode
This page contains facts from public vulnerability sources. Check the original advisory before updating.
React Router is a router for React. In versions on the 7.0 branch prior to version 7.5.2, it's possible to modify pre-rendered data by adding a header to the request. This allows to completely spoof its contents and modify all the values of the data object passed to the HTML. This issue has been patched in version 7.5.2.
CVSS 8.2 · High · EPSS 0.8% · Fix available
- Published
- Updated
Stack: node
Affected products and versions
react-router
- Versions
- >= 7.0, < 7.5.2: Affected
No fix published
react-router npm
- Affected ranges
- SEMVER: ≥ 7.0.0-pre.0, < 7.5.2
Update to 7.5.2
Original sources
- https://github.com/remix-run/react-router/security/advisories/GHSA-cpj6-fhp6-mr6j
- https://github.com/remix-run/react-router/commit/c84302972a152d851cf5dd859ff332b354b70111
- https://github.com/remix-run/react-router/blob/e6c53a0130559b4a9bd47f9cf76ea5b08a69868a/packages/react-router/lib/server-runtime/routes.ts#L87
- https://nvd.nist.gov/vuln/detail/CVE-2025-43865