A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Read More
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-31137

CVE-2025-31137: React Router Auth Bypass Vulnerability

CVE-2025-31137 is an authentication bypass flaw in React Router affecting Remix 2 and React Router 7 with Express adapter. Attackers can spoof URLs via Host headers. This article covers technical details, affected versions, and patches.

Updated: May 19, 2026

CVE-2025-31137 Overview

CVE-2025-31137 is a request handling vulnerability affecting React Router 7 and Remix 2 applications that use the Express adapter. Attackers can spoof the URL of an incoming Request by injecting a URL pathname into the port section of a Host or X-Forwarded-Host header. The handler parses the manipulated header and constructs a Request object with an attacker-controlled URL. This bypasses URL-based routing, validation, and security logic that downstream code relies on. The issue is classified as HTTP request smuggling-class behavior under [CWE-444]. Maintainers patched the flaw in Remix 2.16.3 and React Router 7.4.1.

Critical Impact

Remote attackers can manipulate request URLs without authentication, enabling routing bypass, cache poisoning, and denial of service against applications using the Express adapter.

Affected Products

  • Remix versions prior to 2.16.3 using the Express adapter
  • React Router versions 7.0.0 through 7.4.0 using the Express adapter
  • Node.js applications consuming @remix-run/express or @react-router/express

Discovery Timeline

  • 2025-04-01 - CVE-2025-31137 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-31137

Vulnerability Analysis

The Express adapter for Remix and React Router constructs a Fetch API Request object from the incoming Express request. To build the URL, the adapter reads the Host header, or X-Forwarded-Host when the application trusts upstream proxies. The adapter does not strictly validate the structure of these headers before assembling the URL string.

An attacker can place arbitrary characters, including path separators, after the colon that normally introduces the port. When the resulting string is passed to the URL parser, the parser interprets the injected pathname as part of the URL path rather than the host authority. The handler then dispatches routing and loader logic based on the attacker-supplied path.

Downstream code that reads request.url to enforce access control, select routes, or generate cache keys receives the spoofed value. This breaks the integrity of HTTP request processing as described in [CWE-444].

Root Cause

The root cause is improper parsing and validation of the Host and X-Forwarded-Host headers when synthesizing the Request URL. The adapter trusts client-supplied header content and inserts it directly into URL construction without rejecting malformed authority components.

Attack Vector

Exploitation requires only a single HTTP request to a vulnerable endpoint. The attacker sends a request with a crafted Host or X-Forwarded-Host header containing a port value followed by a pathname. No authentication, user interaction, or prior access is required. The attack succeeds over the network against any reachable Remix or React Router endpoint using the Express adapter.

Technical details and the patched code are documented in the GitHub Security Advisory GHSA-4q56-crqp-v477.

Detection Methods for CVE-2025-31137

Indicators of Compromise

  • HTTP requests with Host or X-Forwarded-Host headers containing a colon followed by non-numeric characters such as / or path segments
  • Application logs showing request.url values whose host or port portion contains unexpected pathname characters
  • Unexpected 404, 500, or routing errors correlated with malformed host headers from a single source IP

Detection Strategies

  • Inspect reverse proxy and web application firewall logs for Host and X-Forwarded-Host header values that do not match the pattern hostname or hostname:port where port is numeric
  • Add server-side logging of the reconstructed request.url for every incoming request and alert on URLs whose authority component contains /
  • Run dependency scanning across CI pipelines to flag @remix-run/express below 2.16.3 and @react-router/express below 7.4.1

Monitoring Recommendations

  • Forward web server access logs and Node.js application logs to a centralized analytics platform for header anomaly queries
  • Baseline normal Host header values per environment and alert on deviations
  • Monitor for spikes in routing errors or unauthorized route access attempts following deployments

How to Mitigate CVE-2025-31137

Immediate Actions Required

  • Upgrade Remix to version 2.16.3 or later
  • Upgrade React Router to version 7.4.1 or later
  • Audit any custom request handlers that read Host or X-Forwarded-Host and validate header format before use
  • Configure upstream reverse proxies to strip or overwrite client-supplied X-Forwarded-Host headers

Patch Information

The maintainers released fixes in Remix 2.16.3 and React Router 7.4.1. The patched adapter validates the header structure before constructing the Request URL. Review the GitHub Security Advisory for the upstream commit and version metadata.

Workarounds

  • Deploy a reverse proxy rule that rejects requests whose Host or X-Forwarded-Host header contains characters outside the allowed hostname and port grammar
  • Override the URL construction in a custom Express middleware that sets req.headers.host to a known trusted value before invoking the Remix or React Router handler
  • Restrict the application to a fixed hostname allowlist enforced at the load balancer layer
bash
# Upgrade vulnerable packages to patched versions
npm install @remix-run/express@^2.16.3
npm install @react-router/express@^7.4.1

# Verify installed versions
npm ls @remix-run/express @react-router/express

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechReact Router

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-444
  • Technical References
  • 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 Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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