Gunicorn is a widely used PyPI package. As of 2026-05-24, there are 4 known vulnerabilities in the OSV database. The latest stable version is 26.0.0. Developers should audit their dependency trees and update to patched versions.
Package Overview
Known Vulnerabilities (4)
| ID | Severity | Score | Affected Versions | Fixed In | Description |
|---|---|---|---|---|---|
| CVE-2018-1000164 | HIGH | 7.5 | 0 to 19.5.0 | 19.5.0 | Gunicorn contains Improper Neutralization of CRLF sequences in HTTP headers |
| CVE-2024-6827 | HIGH | 7.5 | 0 to 22.0.0 | 22.0.0 | Gunicorn HTTP Request/Response Smuggling vulnerability |
| CVE-2024-1135 | HIGH | 7.5 | 0 to 22.0.0 | 22.0.0 | Request smuggling leading to endpoint restriction bypass in Gunicorn |
| CVE-2018-1000164 | UNKNOWN | - | 0 to 19.5.0 | 19.5.0 | gunicorn version 19.4.5 contains a CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers vulnerability in "process_headers" function in "gunicorn/http/wsgi.py" that can result in an attac |
Security Recommendations
- Pin Gunicorn to the latest stable version (26.0.0) in your dependency manifest
- Enable automated dependency updates with Dependabot or Renovate
- Run regular vulnerability scans using
pip-audit - Review your lock file (requirements.txt) after every update
- Monitor the OSV database and NIST NVD for new advisories
FAQ
Is Gunicorn safe to use?
Gunicorn is actively maintained and widely used. As of 2026-05-24, there are 4 known vulnerabilities listed in the OSV database. Most have patches available. Keeping your dependencies updated and running regular security audits significantly reduces risk.
What vulnerabilities does Gunicorn have?
The OSV database currently lists 4 vulnerabilities for Gunicorn. These range in severity and are detailed in the vulnerability table above. Check the linked advisories for full technical details and remediation guidance.
How do I update Gunicorn to fix vulnerabilities?
Run pip install --upgrade gunicorn to get the newest version. Use pip-audit or safety check to scan for known vulnerabilities. Pin your dependencies with a requirements file and review updates regularly.
Using AI-Generated Code with Gunicorn?
Our vibe coding security audit checks for misconfigurations, exposed secrets and vulnerable dependencies in AI-generated codebases. If your project uses Gunicorn, we can verify it is locked to a safe version and properly configured.
Get a Vibe Coding Security Audit