python-uvicorn — security advisory
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 of uvicorn is to log its details to either the console or a log file. When attackers request crafted URLs with percent-encoded escape sequences, the logging component will log the URL after it's been processed with urllib.parse.unquote, therefore converting any percent-encoded characters into their single-character equivalent, which can have special meaning in terminal emulators. By requesting URLs with crafted paths, attackers can: * Pollute uvicorn's access logs, therefore jeopardising the integrity of such files. * Use ANSI sequence codes to attempt to interact with the terminal emulator that's displaying the logs (either in real time or from a file).
- Products
- python-uvicorn
- Affected versions
- 0.11.1-1, 0.11.2-1, 0.11.3-1, 0.13.3-1, 0.15.0-2ubuntu1, 0.23.2+dfsg-1, 0.24.0-1build1, 0.25.0-1, 0.26.0-1, 0.27.0-1, 0.27.1-1, 0.3.24-1, 0.32.0-3, 0.38.0-1
- Fixed versions
- Not specified
- CVEs
- CVE-2020-7694
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:29 UTC · Revision 1
Source evidence
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 of uvicorn is to log its details to either the console or a log file. When attackers request crafted URLs with percent-encoded escape sequences, the logging component will log the URL after it's been processed with urllib.parse.unquote, therefore converting any percent-encoded characters into their single-character equivalent, which can have special meaning in terminal emulators. By requesting URLs with crafted paths, attackers can: * Pollute uvicorn's access logs, therefore jeopardising the integrity of such files. * Use ANSI sequence codes to attempt to interact with the terminal emulator that's displaying the logs (either in real time or from a file).
osv:UBUNTU-CVE-2020-7694
python-uvicorn
Fixed versions: Not specified
python-uvicorn
Fixed versions: Not specified
python-uvicorn
Fixed versions: Not specified
python-uvicorn
Fixed versions: Not specified
python-uvicorn
Fixed versions: Not specified
python-uvicorn
Fixed versions: Not specified
Complete source record
{
"id": "6e335baa465cf9f778e5258dd8eafcfd99738b76bacaeedbb2f850674ab95deb",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-7694",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2020-7694",
"summary": "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 of uvicorn is to log its details to either the console or a log file. When attackers request crafted URLs with percent-encoded escape sequences, the logging component will log the URL after it's been processed with urllib.parse.unquote, therefore converting any percent-encoded characters into their single-character equivalent, which can have special meaning in terminal emulators. By requesting URLs with crafted paths, attackers can: * Pollute uvicorn's access logs, therefore jeopardising the integrity of such files. * Use ANSI sequence codes to attempt to interact with the terminal emulator that's displaying the logs (either in real time or from a file).",
"evidence": "osv:UBUNTU-CVE-2020-7694",
"products": [
{
"name": {
"value": "python-uvicorn",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.3.24-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.11.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.11.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.11.3-1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "python-uvicorn",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.13.3-1",
"evidence": "/affected/1/versions"
},
{
"value": "0.15.0-2ubuntu1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "python-uvicorn",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.23.2+dfsg-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.24.0-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "0.25.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.26.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.27.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "0.27.1-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "python-uvicorn",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.32.0-3",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "python-uvicorn",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.38.0-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "python-uvicorn",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.32.0-3",
"evidence": "/affected/5/versions"
},
{
"value": "0.38.0-1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2020-7694",
"aliases": [
"UBUNTU-CVE-2020-7694"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-uvicorn",
"purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.3.24-1",
"0.11.1-1",
"0.11.2-1",
"0.11.3-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7694.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-uvicorn",
"binary_version": "0.11.3-1"
},
{
"binary_name": "uvicorn",
"binary_version": "0.11.3-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-uvicorn",
"purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"0.13.3-1",
"0.15.0-2ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7694.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-uvicorn",
"binary_version": "0.15.0-2ubuntu1"
},
{
"binary_name": "uvicorn",
"binary_version": "0.15.0-2ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-uvicorn",
"purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.23.2+dfsg-1",
"0.24.0-1build1",
"0.25.0-1",
"0.26.0-1",
"0.27.0-1",
"0.27.1-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7694.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-uvicorn",
"binary_version": "0.27.1-1"
},
{
"binary_name": "uvicorn",
"binary_version": "0.27.1-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-uvicorn",
"purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.32.0-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7694.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-uvicorn",
"binary_version": "0.32.0-3"
},
{
"binary_name": "uvicorn",
"binary_version": "0.32.0-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-uvicorn",
"purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.38.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7694.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-uvicorn",
"binary_version": "0.38.0-1"
},
{
"binary_name": "uvicorn",
"binary_version": "0.38.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-uvicorn",
"purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.32.0-3",
"0.38.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7694.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-uvicorn",
"binary_version": "0.38.0-1"
},
{
"binary_name": "uvicorn",
"binary_version": "0.38.0-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:57.701864144Z",
"provider": "osv",
"upstream": [
"CVE-2020-7694"
],
"references": [
"https://ubuntu.com/security/CVE-2020-7694",
"https://github.com/encode/uvicorn",
"https://snyk.io/vuln/SNYK-PYTHON-UVICORN-575560",
"https://www.cve.org/CVERecord?id=CVE-2020-7694"
]
},
"related_cves": [
{
"value": "CVE-2020-7694",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 356576,
"published_at": "2020-07-27T12:15:00+00:00"
}