---
schema_version: '1.0'
id: security-20260919-115b94
title: 'CVE-2026-63374: AnyIO: TLSStream IDNA 2003 host name encoding enables potential
  TLS certificate spoofing'
url: https://osv.dev/vulnerability/GHSA-82r6-8w77-94w6
url_hash: 115b9421b2fdcdd9ee25cdaf92acf0bbf50828dfa4ffaf385b09e8e47b0b3f9f
canonical_url: https://osv.dev/vulnerability/GHSA-82r6-8w77-94w6
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-63374
- GHSA-82r6-8w77-94w6
- severity: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
- anyio
- PyPI
lang: en
published_at: '2026-09-18T17:17:18Z'
fetched_at: '2026-09-19T16:15:36.936237Z'
updated_at: '2026-09-21T23:51:10.748923Z'
status: published
content_hash: 227a9f42644d5f1b03ff76514a488ec3658317633d8501a4eead187d9b78fd08
content_changed_at: null
license_note: full
summary: 'AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate
  spoofing'
summary_source: rss
summary_en: 'AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate
  spoofing'
summary_omitted_reason: null
redistribution: true
keywords_en:
- anyio
- certificate
- cve
- CVE-2026-63374
- CVE/CVSS
- enables
- encoding
- GHSA-82r6-8w77-94w6
- host
- hosted_at
- IDNA
- library vulnerability
- name
- potential
- PyPI
- PyPI:click
- severity: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
- software security
- spoofing
- TLS
- TLSStream
entities_en:
- name: CVE/CVSS
  type: UNKNOWN
- name: hosted_at
  type: UNKNOWN
- name: PyPI:click
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE/CVSS
  type: UNKNOWN
- name: PyPI:click
  type: artifact
- name: hosted_at
  type: UNKNOWN
key_facts: []
related: []
related_auto:
- name: AIエージェント
  type: UNKNOWN
  weight: 1.0
- name: Asian Games
  type: event
  weight: 1.0
computed_at: '2026-09-19T16:15:39Z'
---

# CVE-2026-63374: AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing

## TL;DR
AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing

## Key Points
- cve / CVE-2026-63374 / GHSA-82r6-8w77-94w6 / severity: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 / anyio / PyPI

## Details
**Severity:** 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
**Advisory:** GHSA-82r6-8w77-94w6 (CVE-2026-63374)

**Details:**
### 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.

**References:**
- https://github.com/agronholm/anyio/security/advisories/GHSA-82r6-8w77-94w6
- https://github.com/agronholm/anyio/pull/1208
- https://github.com/agronholm/anyio/commit/68f58915f82d9be8109ebbbd8f5d70577d43f2ce
- https://github.com/agronholm/anyio
- https://github.com/agronholm/anyio/releases/tag/4.14.2

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-82r6-8w77-94w6_

## Source
元記事: [CVE-2026-63374: AnyIO: TLSStream IDNA 2003 host name encoding enables potential TLS certificate spoofing](https://osv.dev/vulnerability/GHSA-82r6-8w77-94w6) — published 2026-09-18T17:17:18Z
