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

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2026-05-03T00:57:31.519Z
- Modified: 2026-10-26T20:10:00.160Z
- Weaknesses: CWE-444
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Starlet: up to 0.31
- kazuho starlet: up to 0.31

## References

- <https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.3> (third-party-advisory)
- <https://github.com/kazuho/Starlet/commit/a7d5dfd1862aafa43e5eaca0fdb6acf4cc15b2d0.patch> (patch)
- <https://metacpan.org/release/KAZUHO/Starlet-0.32/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/05/03/1> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2026-40561](https://www.cve.org/CVERecord?id=CVE-2026-40561), CVE Terms of Use, modified 2026-05-07
- NVD: [CVE-2026-40561](https://nvd.nist.gov/vuln/detail/CVE-2026-40561), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40561 · Whole record: https://cve.day/CVE-2026-40561.json · Rebuilt by cve.day 2026-11-25T22:59:20.469Z
