Cyber Security News

React Router Vulnerabilities Allow Attackers to Spoof Content and Alter Values

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.

Key Vulnerabilities and Impacts

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.

To use the header, React-router must be used in Framework mode, and for the attack to be possible the target page must use a loader.

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.

To use the header, React-router must be used in Framework mode, and for the attack to be possible the target page must use a loader.
As you can see, all values ​​have been changed/overwritten by the values ​​provided via the header.

This allows content spoofing, phishing, or even stored XSS attacks if data is mishandled client-side.

Technical Breakdown of Vulnerabilities

CVE IDCVE-2025-43864CVE-2025-43865
SeverityHigh (CVSS 7.5)High (CVSS 8.3)
Affected Versions7.2.0 ≤ react-router ≤ 7.5.17.0.0 ≤ react-router ≤ 7.5.1
Patched Version7.5.27.5.2
Attack VectorInject X-React-Router-SPA-Mode headerInject X-React-Router-Prerender-Data header
Primary RiskCache poisoning leading to application DoSData spoofing, content manipulation, XSS

How the Exploits Work

  • Forcing SPA Mode (CVE-2025-43864):
    Attackers send requests with the malicious header to SSR endpoints using loaders. This triggers errors that cache systems store, making the corrupted response permanent until cache invalidation.
  • Data Spoofing (CVE-2025-43865):
    Attackers intercept pre-rendered data requests (e.g., /page.data), modify values in the header, and serve poisoned content. If cached, all users see the falsified data.
  1. Upgrade Immediately: Update to react-router v7.5.2.
  2. Purge Caches: Invalidate cached responses to remove poisoned entries.
  3. Monitor Headers: Block or sanitize X-React-Router-SPA-Mode and X-React-Router-Prerender-Data headers at the network layer.
  4. Audit Loaders: Review server-side loaders for unintended data exposure.

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!

Divya

Divya is a Senior Journalist at GBhackers covering Cyber Attacks, Threats, Breaches, Vulnerabilities and other happenings in the cyber world.

Recent Posts

Hackers Use ConnectWise SkyKick Credentials to Access Microsoft 365, Halting Cloud Backups

Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…

1 day ago

Anthropic’s Claude AI Uncovers Origins of NSA-Provided Cryptographic Keys After 25 Years

Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…

1 day ago

Critical WordPress Flaws Allow Attackers to Execute Remote Code Without Authentication

Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…

1 day ago

OpenBSD Kernel Flaw Dating Back 37 Years Enables Local Privilege Escalation to Root

A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…

1 day ago

GhostAction Hackers Hide Credential-Stealing Malware in Fake Font Files Across 94 GitHub Repositories

GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…

2 days ago

SideCopy Hackers Target Indian Organizations With ReverseRAT Malware to Steal Data

Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…

2 days ago