CVE 10 CRITICAL

Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna_CVE-2026-39821

10 / 10
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Description

The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. For example, ToUnicode("xn--example-.com") incorrectly returns the name "example.com" rather than an error. This behavior can lead to privilege escalation in programs using the idna package. For example, a program which performs privilege checks on the ASCII hostname may reject "example.com" but permit "xn--example-.com". If that program subsequently converts the ASCII hostname to Unicode, it will inadvertently permits access to the Unicode name "example.com".

AI Analysis

Privilege escalation vulnerability due to incorrect handling of Punycode-encoded labels

Basic Information

ID CVE-2026-39821
Source Go
Published May 22, 2026 at 15:01
Modified May 22, 2026 at 18:07

Affected Product

Vendor golang.org/x/net
Product golang.org/x/net/idna
Affected Versions golang.org/x/net golang.org/x/net/idna 0

CWE Classification

AI Assessment

AI Score 10 / 10
AI Severity Critical
Vendor Google
Product idna

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.