{"id":"CVE-2026-63374","aliases":["CVE-2026-63374","GHSA-82r6-8w77-94w6","PYSEC-2026-4025"],"related":[],"kind":"vulnerability","state":"published","title":"AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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":"cvelist"},{"lang":"en","text":"### Impact\nServices 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.\n\n### Patches\nThe vulnerability will be patched in v4.14.2.\n\n### Workarounds\nEncode host names via the `idna` package prior to connecting.","format":"markdown","source":"ghsa"}],"published":"2026-09-18T17:17:18.000Z","modified":"2026-10-01T17:56:11.058Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":9.3,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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"}],"cwes":["CWE-295","CWE-297"],"affected":[{"ranges":[{"version":"< 4.14.2","status":"affected"}],"vendor":"agronholm","product":"anyio","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.14.2"}],"ecosystem":"PyPI","package":"anyio","purl":"pkg:pypi/anyio","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.14.2"}],"ecosystem":"PyPI","package":"anyio","purl":"pkg:pypi/anyio","source":"pysec"}],"references":[{"url":"https://github.com/agronholm/anyio/security/advisories/GHSA-82r6-8w77-94w6","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/agronholm/anyio/pull/1208","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/agronholm/anyio/commit/68f58915f82d9be8109ebbbd8f5d70577d43f2ce","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/agronholm/anyio/releases/tag/4.14.2","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/agronholm/anyio","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/anyio","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-82r6-8w77-94w6","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63374","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-09-28T16:07:36.655Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63374","url":"https://www.cve.org/CVERecord?id=CVE-2026-63374","licence":"CVE Terms of Use","modified":"2026-09-28T16:32:29.169Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-82r6-8w77-94w6","url":"https://github.com/advisories/GHSA-82r6-8w77-94w6","licence":"CC-BY-4.0","modified":"2026-10-01T17:56:11.058Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63374","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63374","licence":"Public domain","modified":"2026-09-28T17:17:50.357Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-4025","url":"https://osv.dev/vulnerability/PYSEC-2026-4025","licence":"CC-BY-4.0","modified":"2026-10-01T17:45:01.997Z"}],"updatedAt":"2026-11-25T22:59:40.453Z","epss":{"score":0.00289,"percentile":0.23084,"date":"2026-12-01T12:00:22.000Z"}}