Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-25478

CVE-2026-25478: Litestar ASGI Framework XSS Vulnerability

CVE-2026-25478 is a cross-site scripting flaw in Litestar ASGI framework that allows malicious origins to bypass CORS validation. This post explains its impact, affected versions, and mitigation steps.

Published: February 13, 2026

CVE-2026-25478 Overview

CVE-2026-25478 is a CORS (Cross-Origin Resource Sharing) origin validation bypass vulnerability in Litestar, an Asynchronous Server Gateway Interface (ASGI) framework. Prior to version 2.20.0, the CORSConfig.allowed_origins_regex is constructed using a regex built from configured allowlist values and validated with fullmatch(). Because regex metacharacters are not properly escaped, a malicious origin can unexpectedly match the allowlist pattern, enabling unauthorized cross-origin requests.

Critical Impact

Attackers can bypass CORS protections by crafting malicious origins that exploit unescaped regex metacharacters, potentially leading to unauthorized data exfiltration from affected web applications.

Affected Products

  • Litestar ASGI Framework versions prior to 2.20.0
  • Applications using CORSConfig.allowed_origins_regex with metacharacter-containing origins
  • Web services relying on Litestar's CORS validation for access control

Discovery Timeline

  • February 9, 2026 - CVE-2026-25478 published to NVD
  • February 9, 2026 - Last updated in NVD database

Technical Details for CVE-2026-25478

Vulnerability Analysis

This vulnerability stems from improper handling of regex metacharacters in the CORS origin validation logic. When developers configure allowed origins in Litestar's CORS middleware, the framework constructs a regular expression pattern from these values without escaping special regex characters. The validation check uses allowed_origins_regex.fullmatch(origin) to determine if an incoming request's origin should be permitted.

Without proper escaping, characters like . (which matches any character in regex), *, +, ?, and others retain their special regex meanings. This allows attackers to craft origin values that satisfy the regex pattern but were never intended to be in the allowlist.

For example, if an application configures example.com as an allowed origin, the unescaped . would match any character, potentially allowing exampleXcom.attacker.com to pass validation.

Root Cause

The root cause is classified as CWE-942 (Permissive Cross-domain Policy with Untrusted Domains). The vulnerability occurs because the Litestar framework fails to escape regex metacharacters when building the allowed_origins_regex pattern from user-configured allowlist values. This results in overly permissive origin matching that can be exploited by malicious domains.

Attack Vector

The attack is network-based and requires user interaction. An attacker can exploit this vulnerability by:

  1. Identifying a web application using a vulnerable Litestar version with CORS configured
  2. Analyzing the configured allowed origins to identify exploitable regex patterns
  3. Registering a malicious domain that matches the unescaped regex pattern
  4. Hosting malicious content on that domain to make cross-origin requests
  5. Tricking users into visiting the malicious domain, which then exfiltrates sensitive data from the target application

The vulnerability enables attackers to bypass CORS restrictions, potentially accessing sensitive data that should only be available to explicitly trusted origins. See the GitHub Security Advisory GHSA-2p2x-hpg8-cqp2 for additional technical details.

Detection Methods for CVE-2026-25478

Indicators of Compromise

  • Unexpected cross-origin requests from domains similar to but not matching configured allowed origins
  • Access logs showing CORS-enabled requests from suspicious or recently registered domains
  • Browser console logs indicating successful cross-origin requests from untrusted sources
  • Network traffic analysis revealing data exfiltration to domains resembling legitimate allowed origins

Detection Strategies

  • Review application logs for cross-origin requests from origins containing characters adjacent to dots in allowed origin configurations
  • Implement monitoring for CORS Access-Control-Allow-Origin response headers being set for suspicious origins
  • Audit Litestar configuration files for CORSConfig settings with origins containing regex metacharacters
  • Deploy web application firewalls (WAF) with rules to detect anomalous origin patterns in requests

Monitoring Recommendations

  • Enable verbose logging for CORS middleware to capture all origin validation decisions
  • Set up alerts for CORS requests from newly registered domains or domains with unusual character patterns
  • Monitor for increased cross-origin traffic volume that could indicate exploitation attempts
  • Implement real-time analysis of origin headers against a strict allowlist separate from the framework's validation

How to Mitigate CVE-2026-25478

Immediate Actions Required

  • Upgrade Litestar to version 2.20.0 or later immediately
  • Audit existing CORS configurations for origins containing regex metacharacters
  • Review application logs for any historical evidence of exploitation
  • Consider implementing additional origin validation at the application layer as defense-in-depth

Patch Information

The vulnerability is fixed in Litestar version 2.20.0. The fix ensures that regex metacharacters in configured allowed origins are properly escaped before being used in pattern matching. Organizations should update their Litestar installations to this version or later.

For detailed information about the fix, refer to:

  • Litestar Release Notes for version 2.20.0
  • Litestar Security Commit
  • Litestar Version 2.20.0 Release

Workarounds

  • If immediate upgrade is not possible, implement a custom CORS middleware that properly escapes metacharacters before regex compilation
  • Use exact string matching for origin validation instead of regex-based matching as a temporary measure
  • Deploy a reverse proxy or WAF to perform strict origin validation before requests reach the application
  • Restrict CORS to specific, fully-qualified domain names and avoid wildcard or pattern-based configurations
bash
# Upgrade Litestar to patched version
pip install --upgrade litestar>=2.20.0

# Verify installed version
pip show litestar | grep Version

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechLitestar

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-942
  • Technical References
  • Litestar Release Notes

  • Litestar Commit Overview

  • Litestar Version Release

  • GitHub Security Advisory GHSA-2p2x-hpg8-cqp2
  • Related CVEs
  • CVE-2026-25480: Litestar Cache Poisoning Vulnerability

  • CVE-2026-25479: Litestar Auth Bypass 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