CVE-2026-39821: Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna
CVE-2026-39821 affects 234 listed versions of Go in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Go
234 of 250 listed versions are affected. Fixed in 1.26.6, 1.25.13. The newest release, 1.27.4, is not affected.
1.26.5 1.26.4 1.26.3 1.26.2 1.26.1 1.26.0 1.25.12 1.25.11 1.25.10 1.25.9 1.25.8 1.25.7 1.25.6 1.25.5 1.25.4 1.25.3 1.25.2 1.25.1 1.25.0 1.24.13 1.24.12 1.24.11 1.24.10 1.24.9 1.24.8 1.24.7 1.24.6 1.24.5 1.24.4 1.24.3 1.24.2 1.24.1 1.24.0 1.23.12 1.23.11 1.23.10 1.23.9 1.23.8 1.23.7 1.23.6 1.23.5 1.23.4 1.23.3 1.23.2 1.23.1 1.23.0 1.22.12 1.22.11 1.22.10 1.22.9 1.22.8 1.22.7 1.22.6 1.22.5 1.22.4 1.22.3 1.22.2 1.22.1 1.22.0 1.21.13 and 174 more
What it is
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".
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N (Go)
Published by Go on 22 May 2026. Last changed 23 November 2026.
Sources
Check one version you run: look CVE-2026-39821 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.