CVEfocus › CVE database › CVE-2026-40561

CVE-2026-40561Starlet versions through 0.31 for Perl allows HTTP Request Smuggling via Improper Header…

CVSS 5.3 MediumEPSS 0.4% (higher than 29% of CVEs)Published 2026-05-03Updated 2026-05-07Assigner: CPANSec

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.

CWE-444

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
5Fix pending
3Under investigation
1Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10starletFix pendingUBUNTU-CVE-2026-40561
Ubuntu 26.04starletUnder investigationUBUNTU-CVE-2026-40561
Ubuntu 25.10starletWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-40561
Ubuntu 24.04starletUnder investigationUBUNTU-CVE-2026-40561
Ubuntu 22.04starletUnder investigationUBUNTU-CVE-2026-40561
Ubuntu 20.04starletFix pendingUBUNTU-CVE-2026-40561
Ubuntu 18.04starletFix pendingUBUNTU-CVE-2026-40561
Ubuntu 16.04starletFix pendingUBUNTU-CVE-2026-40561
Debian 14starletFixed0.31-3DEBIAN-CVE-2026-40561
Debian 13starletFixed0.31-2+deb13u1DEBIAN-CVE-2026-40561
Debian 12starletFix pendingDEBIAN-CVE-2026-40561
Alpine Linux 3.24perl-starletFixed0.32-r0ALPINE-CVE-2026-40561
Alpine Linux 3.23perl-starletFixed0.32-r0ALPINE-CVE-2026-40561

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to Starlet 0.32 or later.

Workaround: Migrate to Starman 0.4018 or later which has fixed this issue or apply the patch.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.