Privilege Escalation Vulnerability in Golang IDNA Package
CVE-2026-39821

9.6CRITICAL

What is CVE-2026-39821?

The ToASCII and ToUnicode functions in Golang's IDNA package fail to properly handle Punycode-encoded labels, allowing for the erroneous acceptance of labels that should trigger errors. This flaw can lead to unintended privilege escalation by accepting input like 'xn--example-.com' and incorrectly processing it as 'example.com', which may bypass privilege checks and grant unauthorized access. Developers using this package should reassess their privilege validation mechanisms to ensure they are not vulnerable to this issue.

Affected Version(s)

golang.org/x/net/idna 0 < 0.55.0

net/http 0 < 1.25.13

net/http 1.26.0-0 < 1.26.6

References

CVSS V3.1

Score:
9.6
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

KC1zs4 (https://github.com/KC1zs4)
.