Uvicorn 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 0.47.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-2020-7694 | HIGH | 7.5 | 0 to 0.11.7 | 0.11.7 | Log injection in uvicorn |
| CVE-2020-7695 | HIGH | 7.5 | 0 to 0.11.7 | 0.11.7 | HTTP response splitting in uvicorn |
| CVE-2020-7694 | UNKNOWN | - | 0 to 0.11.7 | 0.11.7 | This affects all versions of package uvicorn. The request logger provided by the package is vulnerable to ASNI escape sequence injection. Whenever any HTTP request is received, the default behaviour o |
| CVE-2020-7695 | UNKNOWN | - | 0 to 0.11.7 | 0.11.7 | Uvicorn before 0.11.7 is vulnerable to HTTP response splitting. CRLF sequences are not escaped in the value of HTTP headers. Attackers can exploit this to add arbitrary headers to HTTP responses, or e |
Security Recommendations
- Pin Uvicorn to the latest stable version (0.47.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 Uvicorn safe to use?
Uvicorn 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 Uvicorn have?
The OSV database currently lists 4 vulnerabilities for Uvicorn. 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 Uvicorn to fix vulnerabilities?
Run pip install --upgrade uvicorn 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 Uvicorn?
Our vibe coding security audit checks for misconfigurations, exposed secrets and vulnerable dependencies in AI-generated codebases. If your project uses Uvicorn, we can verify it is locked to a safe version and properly configured.
Get a Vibe Coding Security Audit