CVE-2019-16786
HTTP Request Smuggling: Invalid Transfer-Encoding in Waitress
Also known as GHSA-g2xc-35jw-c63p, PYSEC-2019-137
Mitigation
- Upgrade waitress to one of 1.4.0, 1.3.1 (or later in the same release line).
Who should check
- Projects that depend on PyPI package waitress (< 1.4.0)
- Anyone running Pylons Waitress >= <= 1.3.1, <= 1.3.1
Vulnerability facts
- Affected
- waitress < 1.4.0
- Fixed in
- 1.4.0, 1.3.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 7.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: Low
- Availability impact: None
- EPSS
- 2.38% chance of exploitation in 30 days (percentile 85, 2026-11-26)
- CWE
- CWE-444
- Modified
Description
Waitress through version 1.3.1 would parse the Transfer-Encoding header and only look for a single string value, if that value was not chunked it would fall through and use the Content-Length header instead. According to the HTTP standard Transfer-Encoding should be a comma separated list, with the inner-most encoding first, followed by any further transfer codings, ending with chunked. Requests sent with: "Transfer-Encoding: gzip, chunked" would incorrectly get ignored, and the request would use a Content-Length header instead to determine the body size of the HTTP message. This could allow for Waitress to treat a single request as multiple requests in the case of HTTP pipelining. This issue is fixed in Waitress 1.4.0.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2019-16786. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2019-16786.md Affected: waitress < 1.4.0 Fixed in: 1.4.0, 1.3.1 Steps: 1. Search this machine and project for waitress (PyPI), Pylons Waitress: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GVDHR2DNKCNQ7YQXISJ45NT4IQDX3LJ7/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LYEOTGWJZVKPRXX2HBNVIYWCX73QYPM5/
- https://access.redhat.com/errata/RHSA-2020:0720
- https://docs.pylonsproject.org/projects/waitress/en/latest/#security-fixes
- https://github.com/Pylons/waitress/security/advisories/GHSA-g2xc-35jw-c63p
- https://nvd.nist.gov/vuln/detail/CVE-2019-16786
Patches
Other
- https://lists.debian.org/debian-lts-announce/2022/05/msg00011.html
- https://github.com/Pylons/waitress
- https://github.com/pypa/advisory-database/tree/main/vulns/waitress/PYSEC-2019-137.yaml
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GVDHR2DNKCNQ7YQXISJ45NT4IQDX3LJ7
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYEOTGWJZVKPRXX2HBNVIYWCX73QYPM5
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GVDHR2DNKCNQ7YQXISJ45NT4IQDX3LJ7/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYEOTGWJZVKPRXX2HBNVIYWCX73QYPM5/
FAQ
Is CVE-2019-16786 being exploited?
There is no confirmed exploitation: CVE-2019-16786 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.38% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2019-16786?
High: CVSS 7.1 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2019-16786?
waitress < 1.4.0.
Is there a fix for CVE-2019-16786?
Yes. Fixed in 1.4.0, 1.3.1. Upgrade waitress to one of 1.4.0, 1.3.1 (or later in the same release line).
How do I check if I'm affected by CVE-2019-16786?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.