The widely used React Router library, a critical navigation tool for React applications, has resolved two high-severity vulnerabilities (CVE-2025-43864 and CVE-2025-43865) that allowed attackers to spoof content, alter data values, and launch cache-poisoning attacks.
Developers must update to react-router v7.5.2 immediately to mitigate risks.
1. CVE-2025-43864: DoS via SPA Mode Cache Poisoning
Attackers could force server-side rendering (SSR) applications into single-page application (SPA) mode by injecting the X-React-Router-SPA-Mode header.
This triggers errors that corrupt pages and-if cached-render entire applications unusable.
2. CVE-2025-43865: Pre-Render Data Spoofing
By exploiting the X-React-Router-Prerender-Data header, attackers could manipulate pre-rendered data to overwrite server-side values.
This allows content spoofing, phishing, or even stored XSS attacks if data is mishandled client-side.
Technical Breakdown of Vulnerabilities
| CVE ID | CVE-2025-43864 | CVE-2025-43865 |
| Severity | High (CVSS 7.5) | High (CVSS 8.3) |
| Affected Versions | 7.2.0 ≤ react-router ≤ 7.5.1 | 7.0.0 ≤ react-router ≤ 7.5.1 |
| Patched Version | 7.5.2 | 7.5.2 |
| Attack Vector | Inject X-React-Router-SPA-Mode header | Inject X-React-Router-Prerender-Data header |
| Primary Risk | Cache poisoning leading to application DoS | Data spoofing, content manipulation, XSS |
How the Exploits Work
Cybersecurity firm Cold-Try, which discovered the flaws, warns:
“These vulnerabilities highlight the risks of improper header handling in SSR frameworks. Organizations using React Router must act swiftly- attackers can exploit these issues with minimal effort.”
React Router’s updates address critical gaps in header validation and data integrity.
With over 20 million weekly downloads on npm, this library’s security is vital to the global React ecosystem. Developers should prioritize patching and monitor for unusual header activity.
Find this News Interesting! Follow us on Google News, LinkedIn, & X to Get Instant Updates!
Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…
Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…
Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…
A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…
GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…
Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…