Intel

AIKIDO-2026-889297

anyio is vulnerable to Improper Certificate Validation

CVE-2026-63374Published Jul 14, 2026
July 14, 2026

93

CVE Score

Critical

Improper Certificate Validation

Are you affected? Scan for Free

TL;DR

TLSStream.wrap() in anyio resolves internationalized hostnames using IDNA 2003 instead of IDNA 2008. Because the two standards map some Unicode labels to different ASCII encodings, the hostname passed to wrap_bio for certificate validation can differ from the hostname the caller intended. A TLS certificate issued for the IDNA 2008 encoding of a hostname can therefore fail validation against an IDNA 2003-encoded peer, and conversely a certificate for a different host under the IDNA 2003 mapping may be accepted as valid. The fix introduces idna2008_resolve() and uses the corrected server_hostname in wrap_bio.

How do I fix this?

Upgrade the anyio library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application uses TLSStream.wrap() with internationalized (non-ASCII) hostnames.

Package

Versions

0.0.1 - 4.14.1

Fixed in 4.14.2

Background info

anyio is vulnerable to Improper Certificate Validation in versions 0.0.1 - 4.14.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea