BreachSpiderVerified, not vibes

CVE-2020-7694 in Encode Uvicorn

High 7.5

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...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS1.4%
EPSS percentile72th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Encode Uvicorn No version listed by the source

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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).

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2020-7694
BreachSpider IDBS-2020-GLOBAL-212339-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published2020-07-27
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-94: Code Injection

Attacker injects arbitrary code that is executed by the application process.

CWE-116: CWE-116

Related attack patterns (CAPEC)

CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94

CAPEC-81 Web Server Logs Tampering via CWE-116

CAPEC-85 AJAX Footprinting via CWE-116

CAPEC-73 User-Controlled Filename via CWE-116

CAPEC-77 Manipulating User-Controlled Variables via CWE-94

Show all 7

CAPEC-104 Cross Zone Scripting via CWE-116

CAPEC-242 Code Injection via CWE-94

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

The request logger in all versions of the uvicorn package is vulnerable to ANSI escape sequence injection, which could allow attackers to manipulate log output.

Attackers can exploit this vulnerability by sending crafted HTTP requests with percent-encoded ANSI escape sequences. The logging component of uvicorn will log these sequences, potentially leading to log poisoning or other malicious activities.

Questions

What is CVE-2020-7694?

The request logger in all versions of the uvicorn package is vulnerable to ANSI escape sequence injection, which could allow attackers to manipulate log output.

What is the CVSS score for CVE-2020-7694?

CVE-2020-7694 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 1.4%.

Is CVE-2020-7694 actively exploited?

No confirmed active exploitation of CVE-2020-7694 as of 2026-09-25.

How do I remediate CVE-2020-7694?

Priority: MEDIUM.

What systems are affected by CVE-2020-7694?

CVE-2020-7694 affects Encode Uvicorn.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Encode","product":"Uvicorn","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.