Loading advisory.
Loading advisory.
Inconsistent Interpretation of HTTP Requests in twisted.web
The Twisted Web HTTP 1.1 server, located in the twisted.web.http module, parsed several HTTP request constructs more leniently than permitted by RFC 7230:
Published 2022-04-04 17:25 UTC · Modified 2025-04-23 18:42 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| twisted | PyPI | < 22.4.0 git commits in https://github.com/twisted/twisted: < 592217e951363d60e9cd99c5bbfd23d4615043ac versions 1.0.1, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.1.0, 1.1.1, 1.2.0, 10.0.0, 10.1.0, 10.2.0, 11.0.0, 11.1.0, 12.0.0, 12.1.0, 12.2.0, 12.3.0, 13.0.0, 13.1.0 and 68 more | 22.4.0, 592217e951363d60e9cd99c5bbfd23d4615043ac | pip install --upgrade 'twisted>=22.4.0'pip install --upgrade 'twisted>=592217e951363d60e9cd99c5bbfd23d4615043ac' |
The Twisted Web HTTP 1.1 server, located in the twisted.web.http module, parsed several HTTP request constructs more leniently than permitted by RFC 7230:
The Content-Length header value could have a + or - prefix.
Illegal characters were permitted in chunked extensions, such as the LF (\n) character.
Chunk lengths, which are expressed in hexadecimal format, could have a prefix of 0x.
HTTP headers were stripped of all leading and trailing ASCII whitespace, rather than only space and HTAB (\t).
This non-conformant parsing can lead to desync if requests pass through multiple HTTP parsers, potentially resulting in HTTP request smuggling.
You may be affected if:
You use Twisted Web's HTTP 1.1 server and/or proxy
You also pass requests through a different HTTP server and/or proxy
The specifics of the other HTTP parser matter. The original report notes that some versions of Apache Traffic Server and HAProxy have been vulnerable in the past. HTTP request smuggling may be a serious concern if you use a proxy to perform request validation or access control.
The Twisted Web client is not affected. The HTTP 2.0 server uses a different parser, so it is not affected.
The issue has been addressed in Twisted 22.4.0rc1 and later.
Other than upgrading Twisted, you could:
Ensure any vulnerabilities in upstream proxies have been addressed, such as by upgrading them
Filter malformed requests by other means, such as configuration of an upstream proxy
This issue was initially reported by Zhang Zeyu.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.028 on 2026-11-24 to 0.020 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.028 | first score | v2026.06.15 |
| 2026-11-26 | 0.020 | 0.028 | v2026.06.15 |