CVE-2026-39821: Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna
Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna
Other sources
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".
— OSV
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
azurelinux/golangto a version that resolves this vulnerability.Fixed in 1.26.4-2 - Upgrade
Upgrade
azurelinux/kata-containersto a version that resolves this vulnerability.Fixed in 3.19.1.kata3-3 - Upgrade
Upgrade
azurelinux/kubernetesto a version that resolves this vulnerability.Fixed in 1.30.10-25 - Upgrade
Upgrade
azurelinux/sriov-network-device-pluginto a version that resolves this vulnerability.Fixed in 3.7.0-6 - Upgrade
Upgrade
azurelinux/moby-containerd-ccto a version that resolves this vulnerability.Fixed in 1.7.7-13 - Upgrade
Upgrade
azurelinux/golangto a version that resolves this vulnerability.Fixed in 1.25.11-2 - Upgrade
Upgrade
azurelinux/moby-engineto a version that resolves this vulnerability.Fixed in 25.0.3-18 - Upgrade
Upgrade
azurelinux/kata-containers-ccto a version that resolves this vulnerability.Fixed in 3.15.0.aks0-11 - Upgrade
Upgrade
azurelinux/git-lfsto a version that resolves this vulnerability.Fixed in 3.6.1-3 - Upgrade
Upgrade
azurelinux/vitessto a version that resolves this vulnerability.Fixed in 19.0.4-10 - Upgrade
Upgrade
azurelinux/prometheus-node-exporterto a version that resolves this vulnerability.Fixed in 1.7.0-4 - Upgrade
Upgrade
azurelinux/etcdto a version that resolves this vulnerability.Fixed in 3.5.30-2 - Upgrade
Upgrade
azurelinux/prometheus-adapterto a version that resolves this vulnerability.Fixed in 0.12.0-6 - Upgrade
Upgrade
azurelinux/packerto a version that resolves this vulnerability.Fixed in 1.9.5-14 - Upgrade
Upgrade
azurelinux/cri-toolsto a version that resolves this vulnerability.Fixed in 1.32.0-6 - Upgrade
Upgrade
azurelinux/influxdbto a version that resolves this vulnerability.Fixed in 2.7.5-17 - Upgrade
Upgrade
azurelinux/kubevirtto a version that resolves this vulnerability.Fixed in 1.7.1-5 - Upgrade
Upgrade
azurelinux/azurelinux-image-toolsto a version that resolves this vulnerability.Fixed in 1.3.0-2 - Upgrade
Upgrade
azurelinux/application-gateway-kubernetes-ingressto a version that resolves this vulnerability.Fixed in 1.7.7-4 - Upgrade
Upgrade
azurelinux/kuredto a version that resolves this vulnerability.Fixed in 1.15.0-5 - Upgrade
Upgrade
azurelinux/kube-vip-cloud-providerto a version that resolves this vulnerability.Fixed in 0.0.10-6 - Upgrade
Upgrade
azurelinux/telegrafto a version that resolves this vulnerability.Fixed in 1.31.0-21 - Upgrade
Upgrade
azurelinux/containerized-data-importerto a version that resolves this vulnerability.Fixed in 1.62.0-5 - Upgrade
Upgrade
azurelinux/prometheus-process-exporterto a version that resolves this vulnerability.Fixed in 0.8.2-4 - Upgrade
Upgrade
azurelinux/kedato a version that resolves this vulnerability.Fixed in 2.14.1-13 - Upgrade
Upgrade
azurelinux/ignition-flatcarto a version that resolves this vulnerability.Fixed in 2.22.0-3 - Upgrade
Upgrade
azurelinux/skopeoto a version that resolves this vulnerability.Fixed in 1.14.4-11 - Upgrade
Upgrade
azurelinux/opato a version that resolves this vulnerability.Fixed in 0.63.0-4 - Upgrade
Upgrade
azurelinux/cert-managerto a version that resolves this vulnerability.Fixed in 1.12.15-8 - Upgrade
Upgrade
azurelinux/jxto a version that resolves this vulnerability.Fixed in 3.10.182-4 - Upgrade
Upgrade
azurelinux/ghto a version that resolves this vulnerability.Fixed in 2.62.0-16 - Upgrade
Upgrade
azurelinux/docker-composeto a version that resolves this vulnerability.Fixed in 2.27.0-11 - Upgrade
Upgrade
azurelinux/containerd2to a version that resolves this vulnerability.Fixed in 2.1.6-3 - Upgrade
Upgrade
azurelinux/docker-buildxto a version that resolves this vulnerability.Fixed in 0.14.0-13 - Upgrade
Upgrade
azurelinux/docker-clito a version that resolves this vulnerability.Fixed in 25.0.7-3 - Upgrade
Upgrade
azurelinux/multusto a version that resolves this vulnerability.Fixed in 4.0.2-8 - Upgrade
Upgrade
azurelinux/flannelto a version that resolves this vulnerability.Fixed in 0.24.2-28 - Upgrade
Upgrade
azurelinux/corednsto a version that resolves this vulnerability.Fixed in 1.11.4-17 - Upgrade
Upgrade
azurelinux/cloud-provider-kubevirtto a version that resolves this vulnerability.Fixed in 0.5.1-4 - Upgrade
Upgrade
azurelinux/cf-clito a version that resolves this vulnerability.Fixed in 8.7.11-6 - Upgrade
Upgrade
azurelinux/azcopyto a version that resolves this vulnerability.Fixed in 10.25.1-5 - Upgrade
Upgrade
azurelinux/kubevirt-openvmmto a version that resolves this vulnerability.Fixed in 1.9.0-2 - Upgrade
Upgrade
azurelinux/golangto a version that resolves this vulnerability.Fixed in 0:1.26.8-3.azl4 - Upgrade
Upgrade
azurelinux/grafanato a version that resolves this vulnerability.Fixed in 0:10.2.6-27.azl4 - Upgrade
Upgrade
debian/golang-golang-x-netto a version that resolves this vulnerability.Fixed in 1:0.55.0-1 - Upgrade
Upgrade
ubuntu/golang-golang-x-net-devto a version that resolves this vulnerability.Fixed in 1:0.0+git20170629.c81e7f2+dfsg-2ubuntu0.1~esm3 - Upgrade
Upgrade
ubuntu/golang-golang-x-net-devto a version that resolves this vulnerability.Fixed in 1:0.0+git20190811.74dc4d7+dfsg-1ubuntu0.1~esm3 - Upgrade
Upgrade
ubuntu/golang-1.18to a version that resolves this vulnerability.Fixed in 1.18.1-1ubuntu1.3 - Upgrade
Upgrade
ubuntu/golang-1.21to a version that resolves this vulnerability.Fixed in 1.21.1-1~ubuntu22.04.4 - Upgrade
Upgrade
ubuntu/golang-1.23to a version that resolves this vulnerability.Fixed in 1.23.1-1~22.04.3 - Upgrade
Upgrade
ubuntu/golang-1.24to a version that resolves this vulnerability.Fixed in 1.24.13-2~22.04.2 - Upgrade
Upgrade
ubuntu/golang-golang-x-netto a version that resolves this vulnerability.Fixed in 1:0.0+git20211209.491a49a+dfsg-1ubuntu0.1 - Upgrade
Upgrade
ubuntu/google-guest-agentto a version that resolves this vulnerability.Fixed in 20250116.00-0ubuntu1~22.04.4 - Upgrade
Upgrade
ubuntu/google-osconfig-agentto a version that resolves this vulnerability.Fixed in 20251028.00-0ubuntu2~22.04.1 - Upgrade
Upgrade
go/stdlibto a version that resolves this vulnerability.Fixed in 1.25.13 - Upgrade
Upgrade
go/stdlibto a version that resolves this vulnerability.Fixed in 1.26.6 - Upgrade
Upgrade
go/stdlibto a version that resolves this vulnerability.Fixed in 1.27.0-rc.3 - Upgrade
Upgrade
go/golang.org/x/netto a version that resolves this vulnerability.Fixed in 0.57.0 - Upgrade
Upgrade
alpine/goto a version that resolves this vulnerability.Fixed in 1.26.8-r0 - Upgrade
Upgrade
alpine/prometheusto a version that resolves this vulnerability.Fixed in 3.5.4-r0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-39821?
CVE-2026-39821 has a risk rating of 51, indicating a moderate severity level.
How do I fix CVE-2026-39821?
To fix CVE-2026-39821, update to the latest version of golang.org/x/net/idna that addresses this vulnerability.
What impact does CVE-2026-39821 have on my applications?
CVE-2026-39821 may lead to privilege escalation due to improper validation of Punycode-encoded labels in applications utilizing the affected IDNA functions.
What specific functions are affected by CVE-2026-39821?
The ToASCII and ToUnicode functions in golang.org/x/net/idna are affected by CVE-2026-39821.
Are there any known exploits for CVE-2026-39821?
As of now, there are no public exploits reported for CVE-2026-39821, but its presence may offer risk in vulnerable applications.