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

Published Sep 18, 2026
·
Updated

Impact Services using internationalized (non-ASCII) domain names are potentially vulnerable to TLS connections made from AnyIO's connecttcp() 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.

Other sources

AnyIO is a high level asynchronous concurrency and networking framework that works on top of either Trio or asyncio. Prior to 4.14.2, connecttcp() 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.

— MITRE

Affected Software

2 affected componentsFixes available
pip/anyio<4.14.2
4.14.2
IBM API Connect V12 OnPrem<=v12.1.0.0 - v12.1.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/anyio to a version that resolves this vulnerability.

    Fixed in 4.14.2
  2. Upgrade

    Upgrade AnyIO to a version that resolves this vulnerability.

    Fixed in 4.14.2
  3. Compensating control

    Encode internationalized host names via the idna package before connecting.

Event History

Sep 18, 2026
Advisory Published
via GitHub·05:17 PM
Data Sourced
via GitHub·05:17 PM
DescriptionWeaknessAffected Software
Sep 22, 2026
CVE Published
via MITRE·03:23 PM
Data Sourced
via MITRE·03:23 PM
DescriptionWeakness
Data Sourced
via OSV·03:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·09:50 PM
DescriptionSeverityAffected Software
Oct 8, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Services are potentially exposed when they connect to internationalized, non-ASCII domain names using AnyIO's connect_tcp() or TLSStream.wrap(). Exploitation additionally requires the connection to be hijacked and redirected to an attacker-controlled server.

2

What does an attacker need to make certificate validation succeed?

The attacker needs a legitimate certificate for the IDNA 2003-encoded form of the target internationalized domain name. They can then present that certificate from the malicious server after redirecting the connection.

3

What can be done before upgrading?

Encode host names with the idna package before establishing the connection. The issue is slated to be patched in version 4.14.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203