Gunicorn HTTP Request/Response Smuggling vulnerability
Published 20 Mar 2025 · Updated 10 Sept 2026
Is your project on an affected gunicorn?
Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <22.0.0
- Fixed in
- 22.0.0
pip install 'gunicorn>=22.0.0'Details
Gunicorn version 21.2.0 does not properly validate the value of the 'Transfer-Encoding' header as specified in the RFC standards, which leads to the default fallback method of 'Content-Length,' making it vulnerable to TE.CL request smuggling. This vulnerability can lead to cache poisoning, data exposure, session manipulation, SSRF, XSS, DoS, data integrity compromise, security bypass, information leakage, and business logic abuse.
Is GHSA-hc5x-x2vx-497g in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected gunicorn, and gives you the command that fixes it.
More advisories for gunicorn
- HighCVE-2024-1135Request smuggling leading to endpoint restriction bypass in Gunicorn · 16 Apr 2024
- HighCVE-2018-1000164Gunicorn contains Improper Neutralization of CRLF sequences in HTTP headers · 12 Jul 2018
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-6827
- Linkgithub.com/benoitc/gunicorn/issues/3087
- Linkgithub.com/benoitc/gunicorn/issues/3278
- Linkgithub.com/benoitc/gunicorn/pull/3113
- Packagegithub.com/benoitc/gunicorn
- Linkgithub.com/benoitc/gunicorn/releases/tag/22.0.0
- Linkhuntr.com/bounties/1b4f8f38-39da-44b6-9f98-f618639d0dd7
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.