CVE-2026-63374 — Vulnerability in anyio — CVE Details
AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.32%). Schedule for your next planned update.
Does your project use an affected anyio version?
Paste your requirements.txt to check it for CVE-2026-63374 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
Services using internationalized (non-ASCII) domain names are potentially vulnerable to TLS connections made from AnyIO's connect_tcp() or directly via TLSStream.wrap() where the connection has (through other means) been hijacked and redirected to a malicious server. The attacker would obtain a legitimate certificate using the IDNA 2003 encoded version of the domain name and offer it to the connecting client, making the certificate validate properly on the client's end.
Patches
The vulnerability will be patched in v4.14.2.
Workarounds
Encode host names via the idna package prior to connecting.
Advisory Timeline
- First published September 18, 2026 (69 days ago).
- Last revised October 1, 2026 — 13 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "anyio>=4.14.2"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| anyio PyPI · Affected: 1.0.0, 1.0.0a1, 1.0.0a2, 1.0.0b1 (+65 more) | 4.14.2 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-295Improper Certificate ValidationMITRE
- CWE-297
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/agronholm/anyio/security/advisories/GHSA-82r6-8w77-94w6WEB
- https://github.com/agronholm/anyio/pull/1208WEB
- https://github.com/agronholm/anyio/commit/68f58915f82d9be8109ebbbd8f5d70577d43f2ceWEB
- https://github.com/agronholm/anyioPACKAGE
- https://github.com/agronholm/anyio/releases/tag/4.14.2WEB
Frequently Asked Questions
- What is CVE-2026-63374?
- AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2026-63374?
- CVE-2026-63374 affects anyio. It has a 0.3% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-63374 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 17.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-77359CRITICAL
Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes
- CVE-2026-77312CRITICAL
Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)
- CVE-2026-64847MEDIUM
AnyIO process-pool workers can block indefinitely on undrained stderr
- CVE-2026-64847MEDIUM
AnyIO process-pool workers can block indefinitely on undrained stderr