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-25479

CVE-2026-25479: Litestar Auth Bypass Vulnerability

CVE-2026-25479 is an authentication bypass flaw in Litestar ASGI framework where regex metacharacters in allowlist entries enable host verification bypass. This article covers technical details, affected versions, and mitigation.

Published: February 13, 2026

CVE-2026-25479 Overview

CVE-2026-25479 is an input validation vulnerability in Litestar, a popular Asynchronous Server Gateway Interface (ASGI) framework. The vulnerability exists in the litestar.middleware.allowed_hosts module where allowlist entries are compiled into regex patterns without proper escaping of metacharacters. This allows regex special characters like . to retain their special meaning (matching any character), enabling attackers to bypass host validation by supplying a hostname that matches the regex pattern but is not the intended literal hostname.

Critical Impact

Attackers can bypass allowed host restrictions by exploiting regex metacharacter handling, potentially leading to host header injection attacks, security control bypasses, and unauthorized access to protected resources.

Affected Products

  • Litestar ASGI Framework versions prior to 2.20.0
  • Applications using litestar.middleware.allowed_hosts middleware
  • Web services relying on Litestar's host validation for security controls

Discovery Timeline

  • 2026-02-09 - CVE-2026-25479 published to NVD
  • 2026-02-09 - Last updated in NVD database

Technical Details for CVE-2026-25479

Vulnerability Analysis

This vulnerability stems from improper input validation in the allowed hosts middleware implementation. When administrators configure allowed hostnames in Litestar, these values are compiled into regular expression patterns for matching against incoming request Host headers. However, the implementation fails to escape regex metacharacters before compilation.

For example, if an administrator configures example.com as an allowed host, the . character is not escaped and therefore matches any single character in regex terms. An attacker could exploit this by sending a request with a Host header of exampleXcom or example-com, both of which would pass the regex validation despite not being the intended literal hostname.

This type of vulnerability (CWE-185: Incorrect Regular Expression) can lead to security control bypasses where host-based access restrictions are circumvented, enabling potential attacks such as cache poisoning, password reset poisoning, and bypassing of web application firewalls or other host-based filtering mechanisms.

Root Cause

The root cause is the failure to properly escape regex metacharacters when converting allowlist hostname strings into compiled regular expression patterns. The litestar.middleware.allowed_hosts module directly uses user-configured hostnames in regex compilation without applying re.escape() or equivalent sanitization, causing characters like ., *, ?, +, ^, $, [, ], {, }, |, (, ), and \ to retain their special regex meanings instead of being treated as literal characters.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can craft HTTP requests with malicious Host headers that exploit the regex metacharacter bypass. For instance, if api.example.com is in the allowlist, an attacker could send requests with hosts like apiXexampleYcom (where X and Y are any characters), potentially routing traffic through unintended pathways or bypassing security controls that rely on the allowed hosts middleware.

The vulnerability mechanism involves the improper regex pattern compilation in the allowed hosts middleware. When a hostname like example.com is added to the allowlist, it should be treated as a literal string requiring an exact match. However, due to missing regex escaping, the . characters match any single character, allowing hostnames such as exampleXcom to pass validation. The fix in version 2.20.0 properly escapes all regex metacharacters before pattern compilation. For complete technical details, refer to the GitHub Security Advisory GHSA-93ph-p7v4-hwh4.

Detection Methods for CVE-2026-25479

Indicators of Compromise

  • Unusual Host header values in web server access logs that closely resemble legitimate hostnames but with character substitutions
  • Requests with Host headers containing characters that would not normally appear in configured allowed hostnames
  • Increased traffic from sources attempting variations of allowed hostnames
  • Log entries showing successful requests to endpoints that should be restricted by host validation

Detection Strategies

  • Implement log analysis to identify Host headers that match allowed hosts via regex but differ in literal characters (e.g., example-com instead of example.com)
  • Deploy web application firewall rules to detect and alert on Host header manipulation attempts
  • Monitor for requests where the Host header contains unexpected characters in positions where dots or other metacharacters should appear
  • Review application logs for patterns indicating systematic testing of hostname variations

Monitoring Recommendations

  • Enable verbose logging for the allowed hosts middleware to capture rejected and accepted Host headers
  • Configure alerting for anomalous Host header patterns that deviate from expected literal hostnames
  • Implement network-level monitoring to detect reconnaissance attempts targeting hostname validation
  • Regularly audit Litestar application configurations to ensure updated versions are deployed

How to Mitigate CVE-2026-25479

Immediate Actions Required

  • Upgrade Litestar to version 2.20.0 or later immediately to receive the security fix
  • Review application logs for any signs of exploitation attempts before patching
  • Audit current allowed hosts configurations and ensure they contain only necessary hostnames
  • Consider implementing additional host validation at the reverse proxy or load balancer level as defense in depth

Patch Information

The vulnerability is fixed in Litestar version 2.20.0. The fix ensures that regex metacharacters in allowlist hostname entries are properly escaped before pattern compilation, treating all configured hostnames as literal strings.

  • Litestar Release v2.20.0
  • GitHub Commit Details
  • Litestar Release Notes

Workarounds

  • If immediate upgrade is not possible, implement host validation at the reverse proxy layer (e.g., Nginx, Apache, or cloud load balancer) using literal string matching
  • Consider adding a custom middleware that performs strict literal hostname matching before the vulnerable allowed hosts middleware
  • Restrict network access to the application to trusted sources while the upgrade is being planned
  • Monitor logs closely for exploitation attempts until the patch can be applied
bash
# Upgrade Litestar to patched version
pip install --upgrade litestar>=2.20.0

# Verify installed version
pip show litestar | grep Version

# Alternative: Pin to specific patched version in requirements.txt
echo "litestar>=2.20.0" >> requirements.txt
pip install -r requirements.txt

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechLitestar

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.03%

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

  • GitHub Commit Details

  • Litestar Release v2.20.0

  • GitHub Security Advisory GHSA-93ph-p7v4-hwh4
  • Related CVEs
  • CVE-2026-25480: Litestar Cache Poisoning Vulnerability

  • CVE-2026-25478: Litestar ASGI Framework 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