CVE-2026-39821: Vulnerability in Golang Net

Critical. 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...

CWE-1289

Exploitation
None confirmed
Severity
9.6 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-w2q5-6q6x-x959
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Weakness
CWE-1289
Published
22 May 2026
Last change
23 Nov 2026

Affected products

Affected versions and the first fixed release

  • Golang Net Before 0.55.0. Fixed in 0.55.0
  • Go standard library net/http Before 1.25.13; From 1.26.0-0 before 1.26.6; From 1.27.0-0 before 1.27.0-rc.3. Fixed in 1.25.13, 1.26.6, 1.27.0-rc.3
  • Go standard library net/http/internal/http2 Before 1.25.13; From 1.26.0-0 before 1.26.6; From 1.27.0-0 before 1.27.0-rc.3. Fixed in 1.25.13, 1.26.6, 1.27.0-rc.3
  • golang.org/x/net/idna Before 0.57.0. Fixed in 0.57.0

Advisories

Vendor and security advisories

Related