CVE-2026-40560

Starman versions before 0.4018 for Perl allows HTTP Request Smuggling via Improper Header Precedence

Published Apr 28, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Starman versions before 0.4018 for Perl allows HTTP Request Smuggling via Improper Header Precedence.

Starman incorrectly prioritizes "Content-Length" over "Transfer-Encoding: chunked" when both headers are present in an HTTP request. Per RFC 7230 3.3.3, Transfer-Encoding must take precedence.

An attacker could exploit this to smuggle malicious HTTP requests via a front-end reverse proxy.

Analysis

AI-generated

Technical impact

Starman versions before 0.4018 implement header parsing that incorrectly prioritizes the "Content-Length" header over "Transfer-Encoding: chunked" when both are present. According to RFC 7230, the Transfer-Encoding header must take precedence. Because of this improper precedence, an attacker can craft requests containing both headers and mislead Starman into interpreting the payload size incorrectly. This flaw allows an attacker to smuggle malicious HTTP requests through a front‑end reverse proxy. The CVE statement does not specify downstream effects; based on the description, it is inferred that the smuggled requests could interfere with or manipulate downstream services, but these specific actions are not confirmed in the provided data.

Affected Systems

The affected product is Starman for Perl, maintained by MIYAGAWA. All versions preceding 0.4018 are vulnerable. The remedy is to upgrade to Starman 0.4018 or later.

Risk and Exploitability

The attack requires an attacker to send crafted HTTP requests to a server running the vulnerable Starman behind a reverse proxy that forwards requests. Because this attack vector depends on the presence of the proxy and the inclusion of both headers, it is not a generic cross‑platform flaw. The EPSS score is < 1%, indicating a low likelihood of exploitation, while the CVSS score of 7.5 indicates moderate to high impact. The vulnerability is not listed in KEV.

Remediation

Vendor Solution

Upgrade to version 0.4018


OpenCVE Recommended Actions

  • Upgrade Starman to version 0.4018 or newer
  • Configure the reverse proxy to reject requests that contain both Content‑Length and Transfer‑Encoding headers
  • Verify that incoming requests are validated or sanitized for header consistency before forwarding

Generated by OpenCVE AI on April 29, 2026 at 21:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:miyagawa:starman:*:*:*:*:*:perl:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Miyagawa
Miyagawa starman
Vendors & Products Miyagawa
Miyagawa starman
Type Values Removed Values Added
Description Starman versions before 0.4018 for Perl allows HTTP Request Smuggling via Improper Header Precedence. Starman incorrectly prioritizes "Content-Length" over "Transfer-Encoding: chunked" when both headers are present in an HTTP request. Per RFC 7230 3.3.3, Transfer-Encoding must take precedence. An attacker could exploit this to smuggle malicious HTTP requests via a front-end reverse proxy.
Title Starman versions before 0.4018 for Perl allows HTTP Request Smuggling via Improper Header Precedence
Weaknesses CWE-444
References
Weaknesses
  • CWE-444

    Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Apr 29, 2026, 7:06 PM
Reserved
Apr 14, 2026, 11:35 AM
Status
Analyzed
Published
Apr 29, 2026, 12:16 AM
Modified
Jul 24, 2026, 9:10 PM