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-2026-22029

CVE-2026-22029: React Router XSS Vulnerability

CVE-2026-22029 is a cross-site scripting vulnerability in React Router that allows unsafe JavaScript execution via open redirects. This article covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2026-22029 Overview

A Cross-Site Scripting (XSS) vulnerability has been discovered in React Router, a popular routing library for React applications. The vulnerability exists in @remix-run/router versions prior to 1.23.2 and react-router versions 7.0.0 through 7.11.0. When using Framework Mode, Data Mode, or unstable RSC modes, open navigation redirects originating from loaders or actions can result in unsafe URLs that cause unintended JavaScript execution on the client.

Critical Impact

Attackers can exploit open redirect functionality to execute arbitrary JavaScript in the context of the victim's browser session, potentially leading to session hijacking, credential theft, or malicious actions performed on behalf of authenticated users.

Affected Products

  • @remix-run/router versions prior to 1.23.2
  • react-router versions 7.0.0 through 7.11.0
  • Remix v1/v2 applications using Framework Mode, Data Mode, or unstable RSC modes

Discovery Timeline

  • 2026-01-10 - CVE-2026-22029 published to NVD
  • 2026-01-13 - Last updated in NVD database

Technical Details for CVE-2026-22029

Vulnerability Analysis

This vulnerability falls under CWE-79 (Cross-Site Scripting) and stems from improper validation of redirect URLs within React Router's navigation handling. When applications create redirect paths from untrusted content or implement open redirects in loaders or actions, the library fails to adequately sanitize these URLs before executing client-side navigation.

The attack requires user interaction and operates across security boundaries, enabling an attacker to compromise both confidentiality and integrity of the affected application. The vulnerability specifically affects applications using Framework Mode, Data Mode, or the unstable RSC (React Server Components) modes—Declarative Mode using <BrowserRouter> is not impacted.

Root Cause

The root cause lies in insufficient URL validation within the router's redirect handling mechanism. When a loader or action returns a redirect response, the router processes the destination URL without properly sanitizing or validating it against dangerous URL schemes such as javascript:. This allows specially crafted URLs to bypass normal navigation controls and execute arbitrary JavaScript code in the user's browser context.

Attack Vector

The attack vector is network-based and requires the following conditions:

  1. The target application must be using React Router in Framework Mode, Data Mode, or unstable RSC modes
  2. The application must create redirect paths from untrusted user input or implement an open redirect vulnerability
  3. An attacker crafts a malicious URL containing JavaScript code
  4. A victim user must click on or be redirected to the malicious URL
  5. The JavaScript payload executes within the context of the victim's authenticated session

The vulnerability is exploited by injecting a malicious redirect URL through a loader or action that processes user-controlled input. When the router processes this redirect, it fails to detect the dangerous URL scheme and executes the embedded JavaScript code.

Detection Methods for CVE-2026-22029

Indicators of Compromise

  • Unusual redirect URLs in application logs containing javascript: protocol schemes
  • Unexpected client-side script execution reported by Content Security Policy violations
  • User reports of suspicious behavior after clicking links within the application
  • Network traffic showing encoded or obfuscated JavaScript payloads in URL parameters

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and block inline script execution
  • Monitor application logs for redirect attempts using non-HTTP(S) URL schemes
  • Deploy web application firewalls (WAF) with rules to detect URL-based XSS patterns
  • Review code for loader and action functions that construct redirects from user input

Monitoring Recommendations

  • Enable verbose logging for all redirect operations in React Router applications
  • Set up alerts for CSP violation reports indicating blocked script execution
  • Monitor for unusual patterns in URL query parameters across application endpoints
  • Implement client-side error monitoring to capture unexpected JavaScript errors

How to Mitigate CVE-2026-22029

Immediate Actions Required

  • Upgrade @remix-run/router to version 1.23.2 or later immediately
  • Upgrade react-router to version 7.12.0 or later
  • Audit all loaders and actions that perform redirects to ensure they do not use untrusted input
  • Implement URL allowlisting for any redirect destinations in your application

Patch Information

The vulnerability has been patched in @remix-run/router version 1.23.2 and react-router version 7.12.0. Organizations should upgrade to these versions or later as soon as possible. For detailed patch information, refer to the GitHub Security Advisory.

Workarounds

  • Validate all redirect URLs server-side before returning them from loaders or actions
  • Implement an allowlist of permitted redirect destinations
  • Use relative URLs for internal redirects instead of absolute URLs
  • Consider switching to Declarative Mode (<BrowserRouter>) if Framework Mode features are not required
bash
# Upgrade react-router to patched version
npm update react-router@7.12.0

# Upgrade @remix-run/router to patched version
npm update @remix-run/router@1.23.2

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

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechReact Router

  • SeverityHIGH

  • CVSS Score8.0

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-59057: React Router XSS Vulnerability

  • CVE-2026-21884: React Router ScrollRestoration XSS Flaw

  • CVE-2025-68470: React Router SSRF Vulnerability

  • CVE-2026-22030: React Router CSRF Vulnerability
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