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
    • 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-40560

CVE-2026-40560: Starman HTTP Request Smuggling Flaw

CVE-2026-40560 is an HTTP request smuggling vulnerability in Starman for Perl caused by improper header precedence. Attackers can exploit this flaw via reverse proxies. This article covers technical details, impact, and mitigation.

Published: April 30, 2026

CVE-2026-40560 Overview

CVE-2026-40560 is an HTTP Request Smuggling vulnerability in Starman, a high-performance preforking PSGI/Plack web server for Perl applications. Versions prior to 0.4018 incorrectly prioritize the Content-Length header over Transfer-Encoding: chunked when both headers are present in an HTTP request. This violates RFC 7230 Section 3.3.3, which mandates that Transfer-Encoding must take precedence.

An attacker can exploit this header precedence issue to smuggle malicious HTTP requests through front-end reverse proxies, potentially leading to unauthorized access, cache poisoning, or bypassing security controls.

Critical Impact

Attackers can exploit this HTTP Request Smuggling vulnerability to bypass security controls, poison web caches, and hijack user sessions by smuggling malicious requests through front-end proxies that correctly follow RFC 7230.

Affected Products

  • Starman versions prior to 0.4018
  • Perl applications using vulnerable Starman versions as PSGI server
  • Deployments with front-end reverse proxies (nginx, HAProxy, etc.) forwarding to Starman

Discovery Timeline

  • 2026-04-29 - CVE-2026-40560 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-40560

Vulnerability Analysis

HTTP Request Smuggling occurs when front-end and back-end servers disagree on where one HTTP request ends and another begins. This vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests) arises from Starman's improper handling of conflicting HTTP headers.

When an HTTP request contains both Content-Length and Transfer-Encoding: chunked headers, RFC 7230 Section 3.3.3 explicitly states that Transfer-Encoding must take precedence and Content-Length should be ignored. Starman violated this specification by prioritizing Content-Length over Transfer-Encoding: chunked.

This discrepancy creates a desynchronization attack vector: if a front-end proxy (correctly following RFC 7230) interprets the request body using Transfer-Encoding, while Starman interprets it using Content-Length, an attacker can craft requests where the body interpreted by one system contains a complete HTTP request that the other system treats as a new request.

Root Cause

The root cause lies in the request body parsing logic in lib/Starman/Server.pm. The original code structure checked for CONTENT_LENGTH first and only processed chunked encoding as an elsif fallback:

text
if (my $cl = $env->{CONTENT_LENGTH}) {
    # Process using Content-Length
} elsif ($chunked) {
    # Process using chunked encoding
}

This conditional ordering meant that whenever both headers were present, Content-Length would always be used, violating RFC 7230 requirements.

Attack Vector

This vulnerability is exploitable over the network without authentication. An attacker positioned to send HTTP requests through a front-end proxy to a vulnerable Starman server can craft specially malformed requests containing both Content-Length and Transfer-Encoding: chunked headers.

The attack enables:

  • Request hijacking: Smuggling requests that get processed with another user's session
  • Cache poisoning: Injecting malicious content into web caches
  • Security bypass: Circumventing front-end WAF rules and access controls
  • Credential theft: Capturing credentials from other users' requests

The fix implemented in Starman 0.4018 corrects the conditional logic to check for chunked encoding first:

text
 
     my $chunked = do { no warnings; lc delete $env->{HTTP_TRANSFER_ENCODING} eq 'chunked' };
 
-    if (my $cl = $env->{CONTENT_LENGTH}) {
-        my $buf = Plack::TempBuffer->new($cl);
-        while ($cl > 0) {
-            my($chunk, $read) = $get_chunk->();
-
-            if ( !defined $read || $read == 0 ) {
-                die "Read error: $!\n";
-            }
-
-            $cl -= $read;
-            $buf->print($chunk);
-        }
-        $env->{'psgi.input'} = $buf->rewind;
-    } elsif ($chunked) {
+    if ($chunked) {
         my $buf = Plack::TempBuffer->new;
         my $chunk_buffer = '';
         my $length;

Source: GitHub Starman Patch

Detection Methods for CVE-2026-40560

Indicators of Compromise

  • HTTP requests containing both Content-Length and Transfer-Encoding: chunked headers simultaneously
  • Unexpected HTTP requests appearing in application logs that don't correspond to legitimate client activity
  • Web cache entries containing malicious or unexpected content
  • Session-related anomalies where users report seeing other users' data

Detection Strategies

  • Monitor HTTP access logs for requests containing conflicting Content-Length and Transfer-Encoding headers
  • Implement WAF rules to detect and block requests with both body-length specification headers
  • Review Starman version deployed across infrastructure using cpan -D Starman or checking META.json
  • Audit reverse proxy configurations for request normalization settings

Monitoring Recommendations

  • Configure front-end proxies to log and alert on ambiguous HTTP requests with conflicting headers
  • Enable detailed request logging on Starman instances to capture header information
  • Monitor for unusual patterns in application behavior that could indicate request smuggling attempts
  • Set up SIEM rules to correlate suspicious HTTP header patterns across proxy and application server logs

How to Mitigate CVE-2026-40560

Immediate Actions Required

  • Upgrade Starman to version 0.4018 or later immediately using cpanm Starman@0.4018
  • Audit all Perl applications using Starman as the PSGI server
  • Review front-end proxy configurations for request header normalization capabilities
  • Test the deployment with HTTP request smuggling detection tools after patching

Patch Information

The vulnerability has been addressed in Starman version 0.4018. The patch modifies the request body parsing logic in lib/Starman/Server.pm to check for Transfer-Encoding: chunked before Content-Length, ensuring compliance with RFC 7230 Section 3.3.3.

Detailed patch information is available in the MetaCPAN Starman Changes and the GitHub commit.

Workarounds

  • Configure front-end reverse proxies (nginx, HAProxy, Apache) to reject or normalize requests containing both Content-Length and Transfer-Encoding headers
  • Implement WAF rules to block HTTP requests with conflicting body-length headers
  • If possible, ensure the front-end proxy strips Transfer-Encoding headers before forwarding to Starman
  • Consider using HTTP/2 between clients and proxies where request smuggling via these headers is not possible
bash
# nginx configuration to reject ambiguous requests
# Add to server block
if ($http_transfer_encoding ~* "chunked") {
    set $smuggle_check "chunked";
}
if ($content_length) {
    set $smuggle_check "${smuggle_check}+length";
}
if ($smuggle_check = "chunked+length") {
    return 400;
}

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechStarman

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-444
  • Technical References
  • IETF RFC Section 3.3.3

  • GitHub Starman Patch

  • MetaCPAN Starman Changes

  • OpenWall OSS Security Post
  • Latest CVEs
  • CVE-2026-46333: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-2586: Eclipse Glassfish RCE Vulnerability

  • CVE-2026-2587: Eclipse Glassfish RCE Vulnerability

  • CVE-2026-45255: FreeBSD bsdinstall/bsdconfig RCE Flaw
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