CVE-2025-43865
JavaScript vulnerability analysis and mitigation

Overview

React Router, a widely used router for React with approximately 14 million weekly downloads, disclosed a high-severity vulnerability (CVE-2025-43865) affecting versions on the 7.0 branch prior to version 7.5.2. The vulnerability was discovered and reported by security researchers Rachid Allam (zhero;) and Yasser Allam (inzo_), and was disclosed on April 24, 2025 (GitHub Advisory, SecurityOnline).

Technical details

The vulnerability allows attackers to modify pre-rendered data by adding a specific header (X-React-Router-Prerender-Data) to the request. When exploited, this vulnerability enables complete spoofing of contents and modification of all values in the data object passed to the HTML. The vulnerability has been assigned a CVSS v3.1 base score of 8.2 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H (GitHub Advisory).

Impact

The vulnerability's impact is significant, particularly when a caching system is in place. It enables cache poisoning attacks where an attacker can alter all data transmitted via a loader, allowing them to modify page content at will. This can potentially lead to various exploits, including stored Cross-Site Scripting (XSS), depending on how the data is injected or used on the client-side (SecurityOnline).

Exploitability

The vulnerability requires the application to be running in Framework mode and the target page must use a loader. The attack can be executed by accessing the page with a .data suffix to retrieve the data object, then sending a request with the X-React-Router-Prerender-Data header containing modified values (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in React Router version 7.5.2. Users are strongly advised to upgrade to this version to protect against potential attacks. No alternative workarounds have been provided (GitHub Advisory).

Community reactions

Cloudflare has proactively responded to the vulnerability by rolling out mitigations to protect all their customers from both CVE-2025-43865 and related vulnerability CVE-2025-43864 (SecurityOnline).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

RHEL 8

Not Affected

SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-7q9c-hpx7-9cwmHIGH7.5
  • JavaScript logoJavaScript
  • @typespec/spector
NoYesSep 04, 2026
CVE-2026-77465HIGH7.5
  • JavaScript logoJavaScript
  • cockpit-image-builder.src
NoYesSep 03, 2026
CVE-2026-85063MEDIUM6.9
  • JavaScript logoJavaScript
  • csv-parse
NoYesSep 03, 2026
CVE-2026-71429MEDIUM6.2
  • JavaScript logoJavaScript
  • stream-json
NoYesSep 03, 2026
GHSA-6hxq-p678-4hr2LOW2
  • JavaScript logoJavaScript
  • @simplewebauthn/server
NoYesSep 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management