The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-43865

CVE-2025-43865: React Router Data Spoofing Vulnerability

CVE-2025-43865 is a data spoofing vulnerability in React Router that allows attackers to modify pre-rendered data by adding headers to requests. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-43865 Overview

A high-severity insufficient verification of data authenticity vulnerability has been identified in React Router, a popular routing library for React applications. In versions on the 7.0 branch prior to version 7.5.2, attackers can modify pre-rendered data by adding a specially crafted header to the request. This vulnerability allows complete spoofing of pre-rendered content, enabling modification of all values within the data object passed to the HTML.

Critical Impact

Attackers can manipulate pre-rendered application data through header injection, potentially leading to data integrity violations and application state manipulation without authentication requirements.

Affected Products

  • React Router versions 7.0 through 7.5.1
  • Applications using React Router's pre-rendering feature
  • Server-side rendered React applications utilizing React Router 7.x

Discovery Timeline

  • 2025-04-25 - CVE CVE-2025-43865 published to NVD
  • 2025-04-29 - Last updated in NVD database

Technical Details for CVE-2025-43865

Vulnerability Analysis

This vulnerability is classified under CWE-345 (Insufficient Verification of Data Authenticity). The core issue stems from improper validation of request headers during the pre-rendering process in React Router. When processing requests, the server-side runtime fails to adequately verify the authenticity of certain headers, allowing attackers to inject malicious values that modify the pre-rendered data object.

The vulnerability affects the server-side rendering pipeline where build-time headers were being processed without proper contextual validation. This means that during normal runtime operations, headers intended only for build-time processing could still be read and processed, enabling data manipulation.

Root Cause

The root cause lies in the routes.ts file within the server-runtime package, specifically in how headers were processed without distinguishing between build-time and runtime contexts. The application failed to restrict access to build-time-only headers during normal request processing, creating an avenue for header-based data manipulation.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can craft HTTP requests with specific headers that the React Router server-side runtime interprets as legitimate build-time directives. By manipulating these headers, the attacker can alter the pre-rendered data object that gets embedded into the HTML response, potentially affecting:

  • Application state initialization
  • User-visible content
  • Configuration data passed to the client
  • Security-sensitive application parameters
typescript
// Security patch in packages/react-router/lib/server-runtime/dev.ts - Adjust approach for prerendering/SPA mode via headers (#13453)
  // @ts-expect-error
  return globalThis[globalDevServerHooksKey];
}

// Guarded access to build-time-only headers
export function getBuildTimeHeader(request: Request, headerName: string) {
  if (typeof process !== "undefined") {
    try {
      if (process.env?.IS_RR_BUILD_REQUEST === "yes") {
        return request.headers.get(headerName);
      }
    } catch (e) {}
  }
  return null;
}

Source: GitHub Commit Reference

The patch introduces a getBuildTimeHeader function that guards access to build-time-only headers by checking for the IS_RR_BUILD_REQUEST environment variable, ensuring these headers are only processed during legitimate build operations.

typescript
// Security patch in packages/react-router-dev/vite/plugin.ts - Adjust approach for prerendering/SPA mode via headers (#13453)
            );
          }

+          // Set an environment variable we can look for in the handler to
+          // enable some build-time-only logic
+          process.env.IS_RR_BUILD_REQUEST = "yes";

          if (isPrerenderingEnabled(ctx.reactRouterConfig)) {
            // If we have prerender routes, that takes precedence over SPA mode
            // which is ssr:false and only the root route being rendered

Source: GitHub Commit Reference

Detection Methods for CVE-2025-43865

Indicators of Compromise

  • Unusual HTTP request headers targeting React Router pre-rendering functionality
  • Modified or unexpected content in pre-rendered HTML responses
  • Anomalous server-side rendering behavior or data inconsistencies
  • Request logs showing attempts to manipulate build-time headers during runtime

Detection Strategies

  • Monitor HTTP request headers for unexpected or malformed values targeting server-side rendering
  • Implement integrity checking for pre-rendered content to detect unauthorized modifications
  • Review application logs for discrepancies between expected and actual pre-rendered data
  • Deploy web application firewalls (WAF) with rules to detect header manipulation attempts

Monitoring Recommendations

  • Enable detailed logging for all server-side rendering operations
  • Set up alerts for requests containing unusual header patterns
  • Implement content integrity verification for pre-rendered pages
  • Monitor for changes in application behavior that could indicate data spoofing

How to Mitigate CVE-2025-43865

Immediate Actions Required

  • Upgrade React Router to version 7.5.2 or later immediately
  • Audit existing applications for signs of exploitation
  • Review server logs for suspicious header manipulation attempts
  • Implement input validation on server-side rendering pipelines

Patch Information

The vulnerability has been patched in React Router version 7.5.2. The fix introduces environment variable checks to ensure that build-time-only headers are only processed during legitimate build operations, not during runtime requests. The patch is available via the GitHub Commit Reference and detailed in the GitHub Security Advisory.

Workarounds

  • Implement a reverse proxy or WAF rule to strip or validate suspicious headers before they reach the application
  • Disable pre-rendering functionality temporarily if immediate upgrade is not possible
  • Add custom middleware to validate and sanitize incoming request headers
  • Consider using content integrity checks on pre-rendered data objects
bash
# Upgrade React Router to patched version
npm update react-router@7.5.2

# Or using yarn
yarn upgrade react-router@7.5.2

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechReact Router

  • SeverityHIGH

  • CVSS Score8.2

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-345
  • Technical References
  • GitHub Code Snippet

  • GitHub Commit Reference

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-22029: React Router XSS Vulnerability

  • CVE-2025-68470: React Router SSRF Vulnerability

  • CVE-2026-22030: React Router CSRF Vulnerability

  • CVE-2025-59057: React Router XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English