Starlet versions through 0.31 for Perl allows HTTP Request Smuggling via Improper Header Precedence
Summary
| CVE | CVE-2026-40561 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-03 01:15:58 UTC |
| Updated | 2026-05-07 17:15:58 UTC |
| Description | Starlet versions through 0.31 for Perl allows HTTP Request Smuggling via Improper Header Precedence. Starlet 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. |
Risk And Classification
Primary CVSS: v3.1 5.3 MEDIUM from ADP
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS: 0.000120000 probability, percentile 0.018350000 (date 2026-05-12)
Problem Types: CWE-444 | CWE-444 CWE-444 Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| datatracker.ietf.org/doc/html/rfc7230 | 9b29abf9-4ab0-4765-b253-1875cd9b441e | datatracker.ietf.org | Third Party Advisory |
| metacpan.org/release/KAZUHO/Starlet-0.32/changes | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | |
| github.com/kazuho/Starlet/commit/a7d5dfd1862aafa43e5eaca0fdb6acf4cc15b2d... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | Patch |
| www.openwall.com/lists/oss-security/2026/05/03/1 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List, Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: CPANSec (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2019-11-19T00:00:00.000Z | Patch submitted to Starlet 0.31 |
| CNA | 2026-04-12T00:00:00.000Z | Issue identified by CPANSec |
| CNA | 2026-04-28T00:00:00.000Z | Maintainer notified |
| CNA | 2026-05-02T00:00:00.000Z | Determined that the issue was already public on GitHub |
| CNA | 2026-05-06T00:00:00.000Z | Starlet 0.32 released with a fix |
Solutions
CNA: Upgrade to Starlet 0.32 or later.
Workarounds
CNA: Migrate to Starman 0.4018 or later which has fixed this issue or apply the patch.
There are currently no legacy QID mappings associated with this CVE.