CVE-2025-43865
React Router allows pre-render data spoofing on React-Router framework mode
Reported by github_m · Published April 25, 2025
react-router is fixed in 7.5.2 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| react-router | npm | 7.5.2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| remix-run | react-router | >= 7.0, < 7.5.2 |
| npm | react-router | 7.0.0-pre.0 |
| remix-run | react-router | |
| remix-run | react-router | 7.0 |
Timeline
- Apr 24, 2025 CVE Published
- Apr 25, 2025 EPSS Score (30 in total, the first dated here)
- Apr 25, 2025 Coalition ESS Score (22 in total, the first dated here)
- Apr 25, 2025 PoC Published (8 in total, the first dated here)
- Apr 25, 2025 CVE Updated
- Dec 14, 2025 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-43865
vulnetix vdb fixes CVE-2025-43865
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-43865/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/remix-run/react-router/security/advisories/GHSA-cpj6-fhp6-mr6j x_refsource_CONFIRM
- https://github.com/remix-run/react-router/commit/c84302972a152d851cf5dd859ff332b354b70111 x_refsource_MISC
- https://github.com/remix-run/react-router/blob/e6c53a0130559b4a9bd47f9cf76ea5b08a69868a/packages/react-router/lib/server-runtime/routes.ts#L87 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2025-43865 advisory
- https://github.com/advisories/GHSA-cpj6-fhp6-mr6j advisory
- https://github.com/remix-run/react-router url