Live threats

All CVEs / agronholm

CVE-2026-63374agronholm anyio

Improper TLS Certificate Validation in AnyIO due to IDNA 2003

Critical 9.3 No auth needed

Priority
71
CVSS 4.0
9.3
EPSS
—
Auth required
No
Published
Sep 22, 2026
Updated
Sep 28, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-295, CWE-297
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

AnyIO validates internationalized domain names using IDNA 2003 instead of IDNA 2008, allowing an attacker to present a legitimate certificate for a different ASCII hostname during connection hijacking or redirection attacks. This affects connect_tcp() and TLSStream.wrap() functions in versions prior to 4.14.2.

Show the original NVD text

AnyIO is a high level asynchronous concurrency and networking framework that works on top of either Trio or asyncio. Prior to 4.14.2, connect_tcp() and TLSStream.wrap() can validate internationalized host names after the standard library converts them with IDNA 2003 instead of IDNA 2008. When a connection to a non-ASCII domain is hijacked or redirected, an attacker can obtain a legitimate certificate for the different ASCII hostname produced by IDNA 2003 and present it to the client, causing the malicious endpoint's certificate to validate. This issue is fixed in version 4.14.2.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 4.14.2

Update AnyIO to version 4.14.2 or later to fix TLS certificate validation with IDNA 2008.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for anyio.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI anyio < 4.14.2 4.14.2 pip install "anyio>=4.14.2"
PyPI anyio < 4.14.2 4.14.2 pip install "anyio>=4.14.2"

Per OSV / GitHub Advisories (GHSA-82r6-8w77-94w6, PYSEC-2026-4025). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: SUSE (+2)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.