GHSA-82r6-8w77-94w6: Pip/anyio vulnerability

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.

Affected Software

1 affected componentFixes available
pip/anyio<4.14.2
4.14.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 to a fixed release to a version that resolves this vulnerability.

    Fixed in v4.14.2
  3. Configuration

    Prior to connecting using AnyIO `connect_tcp()` or `TLSStream.wrap()`, encode any internationalized (non-ASCII) hostnames using the `idna` package.

    AnyIO Host name encoding = Encode host names via the `idna` package prior to connecting

Event History

Sep 18, 2026
Advisory Published
via GitHub·05:17 PM
Data Sourced
via GitHub·05:17 PM
DescriptionWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are realistically exposed?

Services that connect to internationalized, non-ASCII domain names using AnyIO's connect_tcp() or TLSStream.wrap() are potentially affected. The described risk depends on the connection having been hijacked and redirected to a malicious server.

2

What does an attacker need to make the TLS certificate validate?

The attacker needs to redirect the connection to a malicious server and obtain a legitimate certificate for the domain name's IDNA 2003-encoded form. That certificate can then validate on the client side.

3

What can be done before upgrading?

Encode host names with the idna package before connecting. The issue is scheduled to be patched in AnyIO v4.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