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

Published May 22, 2026
·
Updated

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

212 affected componentsFixes available
go/golang.org/x/net/idna
Microsoft azl3 prometheus-process-exporter 0.8.2-3
Microsoft azl3 multus 4.0.2-7
Microsoft azl3 kata-containers 3.19.1.kata3-1
Microsoft azl3 opa 0.63.0-3
Microsoft azl3 skopeo 1.14.4-10
Microsoft azl3 telegraf 1.31.0-19
Microsoft azl3 jx 3.10.182-3
Microsoft azl3 kata-containers-cc 3.15.0.aks0-9
Microsoft azl3 keda 2.14.1-11
Microsoft azl3 ignition-flatcar 2.22.0-2
Microsoft azl3 gh 2.62.0-15
Microsoft azl3 docker-buildx 0.14.0-11
Microsoft azl3 flannel 0.24.2-26
Microsoft azl3 containerd2 2.1.6-2
Microsoft azl3 docker-compose 2.27.0-9
Microsoft azl3 cloud-provider-kubevirt 0.5.1-3
Microsoft azl3 coredns 1.11.4-15
Microsoft azl3 azcopy 10.25.1-4
Microsoft azl3 docker-cli 25.0.7-2
Microsoft azl3 cf-cli 8.7.11-5
Microsoft azl3 vitess 19.0.4-9
Microsoft azl3 prometheus-node-exporter 1.7.0-3
Microsoft azl3 sriov-network-device-plugin 3.7.0-5
Microsoft azl3 kubevirt 1.7.1-2
Microsoft azl3 kube-vip-cloud-provider 0.0.10-5
Microsoft azl3 influxdb 2.7.5-15
Microsoft azl3 containerized-data-importer 1.62.0-3
Microsoft azl3 cri-tools 1.32.0-4
Microsoft azl3 etcd 3.5.28-1
Microsoft azl3 azurelinux-image-tools 1.2.0-2
Microsoft azl3 application-gateway-kubernetes-ingress 1.7.7-3
Microsoft azl3 cert-manager 1.12.15-6
Microsoft azl3 prometheus-adapter 0.12.0-5
Microsoft azl3 packer 1.9.5-13
Microsoft azl3 kured 1.15.0-3
Microsoft azl3 kubernetes 1.30.10-23
Microsoft azl3 moby-containerd-cc 1.7.7-11
Microsoft azl3 moby-engine 25.0.3-17
Microsoft azl3 vitess 19.0.4-10
Microsoft azl3 sriov-network-device-plugin 3.7.0-6
Microsoft azl3 kubernetes 1.30.10-25
Microsoft azl3 moby-engine 25.0.3-18
Microsoft azl3 git-lfs 3.6.1-4
Microsoft azl3 etcd 3.5.30-2
Microsoft azl3 kata-containers-cc 3.15.0.aks0-12
Microsoft azl3 kata-containers 3.19.1.kata3-4
Microsoft azl3 git-lfs 3.6.1-2
All of the following
azurelinux/golang<1.26.4-2
1.26.4-2
Microsoft Azure Linux=3.0
All of the following
azurelinux/kata-containers<3.19.1.kata3-3
3.19.1.kata3-3
Microsoft Azure Linux=3.0
All of the following
azurelinux/kubernetes<1.30.10-25
1.30.10-25
Microsoft Azure Linux=3.0
All of the following
azurelinux/sriov-network-device-plugin<3.7.0-6
3.7.0-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/moby-containerd-cc<1.7.7-13
1.7.7-13
Microsoft Azure Linux=3.0
All of the following
azurelinux/golang<1.25.11-2
1.25.11-2
Microsoft Azure Linux=3.0
All of the following
azurelinux/moby-engine<25.0.3-18
25.0.3-18
Microsoft Azure Linux=3.0
All of the following
azurelinux/kata-containers-cc<3.15.0.aks0-11
3.15.0.aks0-11
Microsoft Azure Linux=3.0
All of the following
azurelinux/git-lfs<3.6.1-3
3.6.1-3
Microsoft Azure Linux=3.0
All of the following
azurelinux/vitess<19.0.4-10
19.0.4-10
Microsoft Azure Linux=3.0
All of the following
azurelinux/prometheus-node-exporter<1.7.0-4
1.7.0-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/etcd<3.5.30-2
3.5.30-2
Microsoft Azure Linux=3.0
All of the following
azurelinux/prometheus-adapter<0.12.0-6
0.12.0-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/packer<1.9.5-14
1.9.5-14
Microsoft Azure Linux=3.0
All of the following
azurelinux/cri-tools<1.32.0-6
1.32.0-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/influxdb<2.7.5-17
2.7.5-17
Microsoft Azure Linux=3.0
All of the following
azurelinux/kubevirt<1.7.1-5
1.7.1-5
Microsoft Azure Linux=3.0
All of the following
azurelinux/azurelinux-image-tools<1.3.0-2
1.3.0-2
Microsoft Azure Linux=3.0
All of the following
azurelinux/application-gateway-kubernetes-ingress<1.7.7-4
1.7.7-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/kured<1.15.0-5
1.15.0-5
Microsoft Azure Linux=3.0
All of the following
azurelinux/kube-vip-cloud-provider<0.0.10-6
0.0.10-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/telegraf<1.31.0-21
1.31.0-21
Microsoft Azure Linux=3.0
All of the following
azurelinux/containerized-data-importer<1.62.0-5
1.62.0-5
Microsoft Azure Linux=3.0
All of the following
azurelinux/prometheus-process-exporter<0.8.2-4
0.8.2-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/keda<2.14.1-13
2.14.1-13
Microsoft Azure Linux=3.0
All of the following
azurelinux/ignition-flatcar<2.22.0-3
2.22.0-3
Microsoft Azure Linux=3.0
All of the following
azurelinux/skopeo<1.14.4-11
1.14.4-11
Microsoft Azure Linux=3.0
All of the following
azurelinux/opa<0.63.0-4
0.63.0-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/cert-manager<1.12.15-8
1.12.15-8
Microsoft Azure Linux=3.0
All of the following
azurelinux/jx<3.10.182-4
3.10.182-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/gh<2.62.0-16
2.62.0-16
Microsoft Azure Linux=3.0
All of the following
azurelinux/docker-compose<2.27.0-11
2.27.0-11
Microsoft Azure Linux=3.0
All of the following
azurelinux/containerd2<2.1.6-3
2.1.6-3
Microsoft Azure Linux=3.0
All of the following
azurelinux/docker-buildx<0.14.0-13
0.14.0-13
Microsoft Azure Linux=3.0
All of the following
azurelinux/docker-cli<25.0.7-3
25.0.7-3
Microsoft Azure Linux=3.0
All of the following
azurelinux/multus<4.0.2-8
4.0.2-8
Microsoft Azure Linux=3.0
All of the following
azurelinux/flannel<0.24.2-28
0.24.2-28
Microsoft Azure Linux=3.0
All of the following
azurelinux/coredns<1.11.4-17
1.11.4-17
Microsoft Azure Linux=3.0
All of the following
azurelinux/cloud-provider-kubevirt<0.5.1-4
0.5.1-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/cf-cli<8.7.11-6
8.7.11-6
Microsoft Azure Linux=3.0
All of the following
azurelinux/azcopy<10.25.1-5
10.25.1-5
Microsoft Azure Linux=3.0
IBM API Connect<=V10.0.8.0 - V10.0.8.13
Golang Net Go<0.55.0
All of the following
azurelinux/kubevirt-openvmm<1.9.0-2
1.9.0-2
Microsoft Azure Linux=3.0
All of the following
azurelinux/golang<0:1.26.8-3.azl4
0:1.26.8-3.azl4
Microsoft Azure Linux=4.0
All of the following
azurelinux/grafana<0:10.2.6-27.azl4
0:10.2.6-27.azl4
Microsoft Azure Linux=4.0
debian/golang-golang-x-net*
debian/golang-golang-x-net*
debian/golang-golang-x-net<1:0.55.0-1
1:0.55.0-1
ubuntu/golang-1.10*
ubuntu/golang-1.10*
ubuntu/golang-1.6*
ubuntu/juju-core*
ubuntu/lxd*
ubuntu/containerd*
ubuntu/golang-1.13*
ubuntu/golang-1.18*
ubuntu/google-guest-agent*
ubuntu/google-osconfig-agent*
ubuntu/golang-1.10*
ubuntu/lxd*
ubuntu/containerd*
ubuntu/golang-1.13*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.8*
ubuntu/golang-golang-x-net-dev<1:0.0+git20170629.c81e7f2+dfsg-2ubuntu0.1~esm3
1:0.0+git20170629.c81e7f2+dfsg-2ubuntu0.1~esm3
ubuntu/google-guest-agent*
ubuntu/google-osconfig-agent*
ubuntu/adsys*
ubuntu/containerd*
ubuntu/golang-1.13*
ubuntu/google-guest-agent*
ubuntu/golang-1.16*
ubuntu/golang-1.18*
ubuntu/golang-1.22*
ubuntu/golang-golang-x-net-dev<1:0.0+git20190811.74dc4d7+dfsg-1ubuntu0.1~esm3
1:0.0+git20190811.74dc4d7+dfsg-1ubuntu0.1~esm3
ubuntu/google-osconfig-agent*
ubuntu/lxd*
ubuntu/adsys*
ubuntu/containerd*
ubuntu/golang-1.17*
ubuntu/golang-1.18<1.18.1-1ubuntu1.3
1.18.1-1ubuntu1.3
ubuntu/golang-1.21<1.21.1-1~ubuntu22.04.4
1.21.1-1~ubuntu22.04.4
ubuntu/golang-1.22*
ubuntu/golang-1.23<1.23.1-1~22.04.3
1.23.1-1~22.04.3
ubuntu/golang-1.24<1.24.13-2~22.04.2
1.24.13-2~22.04.2
ubuntu/golang-1.25*
ubuntu/golang-golang-x-net<1:0.0+git20211209.491a49a+dfsg-1ubuntu0.1
1:0.0+git20211209.491a49a+dfsg-1ubuntu0.1
ubuntu/google-guest-agent<20250116.00-0ubuntu1~22.04.4
20250116.00-0ubuntu1~22.04.4
ubuntu/google-osconfig-agent<20251028.00-0ubuntu2~22.04.1
20251028.00-0ubuntu2~22.04.1
ubuntu/golang-1.13*
ubuntu/adsys*
ubuntu/golang-1.21*
ubuntu/golang-1.22*
ubuntu/golang-1.24*
ubuntu/google-guest-agent*
ubuntu/google-osconfig-agent*
ubuntu/containerd*
ubuntu/golang-golang-x-net*
ubuntu/adsys*
ubuntu/containerd*
ubuntu/golang-1.26*
ubuntu/golang-golang-x-net*
ubuntu/google-guest-agent*
ubuntu/google-osconfig-agent*
ubuntu/adsys*
ubuntu/golang-1.23*
ubuntu/golang-1.24*
ubuntu/golang-golang-x-net*
ubuntu/google-guest-agent*
ubuntu/google-osconfig-agent*
ubuntu/containerd*
go/stdlib<1.25.13
1.25.13
go/stdlib>=1.26.0-0<1.26.6
1.26.6
go/stdlib>=1.27.0-0<1.27.0-rc.3
1.27.0-rc.3
go/golang.org/x/net<0.57.0
0.57.0
alpine/go<1.26.8-r0
1.26.8-r0
alpine/prometheus<3.5.4-r0
3.5.4-r0
debian/golang-golang-x-net
1:0.55.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade azurelinux/golang to a version that resolves this vulnerability.

    Fixed in 1.26.4-2
  2. Upgrade

    Upgrade azurelinux/kata-containers to a version that resolves this vulnerability.

    Fixed in 3.19.1.kata3-3
  3. Upgrade

    Upgrade azurelinux/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.30.10-25
  4. Upgrade

    Upgrade azurelinux/sriov-network-device-plugin to a version that resolves this vulnerability.

    Fixed in 3.7.0-6
  5. Upgrade

    Upgrade azurelinux/moby-containerd-cc to a version that resolves this vulnerability.

    Fixed in 1.7.7-13
  6. Upgrade

    Upgrade azurelinux/golang to a version that resolves this vulnerability.

    Fixed in 1.25.11-2
  7. Upgrade

    Upgrade azurelinux/moby-engine to a version that resolves this vulnerability.

    Fixed in 25.0.3-18
  8. Upgrade

    Upgrade azurelinux/kata-containers-cc to a version that resolves this vulnerability.

    Fixed in 3.15.0.aks0-11
  9. Upgrade

    Upgrade azurelinux/git-lfs to a version that resolves this vulnerability.

    Fixed in 3.6.1-3
  10. Upgrade

    Upgrade azurelinux/vitess to a version that resolves this vulnerability.

    Fixed in 19.0.4-10
  11. Upgrade

    Upgrade azurelinux/prometheus-node-exporter to a version that resolves this vulnerability.

    Fixed in 1.7.0-4
  12. Upgrade

    Upgrade azurelinux/etcd to a version that resolves this vulnerability.

    Fixed in 3.5.30-2
  13. Upgrade

    Upgrade azurelinux/prometheus-adapter to a version that resolves this vulnerability.

    Fixed in 0.12.0-6
  14. Upgrade

    Upgrade azurelinux/packer to a version that resolves this vulnerability.

    Fixed in 1.9.5-14
  15. Upgrade

    Upgrade azurelinux/cri-tools to a version that resolves this vulnerability.

    Fixed in 1.32.0-6
  16. Upgrade

    Upgrade azurelinux/influxdb to a version that resolves this vulnerability.

    Fixed in 2.7.5-17
  17. Upgrade

    Upgrade azurelinux/kubevirt to a version that resolves this vulnerability.

    Fixed in 1.7.1-5
  18. Upgrade

    Upgrade azurelinux/azurelinux-image-tools to a version that resolves this vulnerability.

    Fixed in 1.3.0-2
  19. Upgrade

    Upgrade azurelinux/application-gateway-kubernetes-ingress to a version that resolves this vulnerability.

    Fixed in 1.7.7-4
  20. Upgrade

    Upgrade azurelinux/kured to a version that resolves this vulnerability.

    Fixed in 1.15.0-5
  21. Upgrade

    Upgrade azurelinux/kube-vip-cloud-provider to a version that resolves this vulnerability.

    Fixed in 0.0.10-6
  22. Upgrade

    Upgrade azurelinux/telegraf to a version that resolves this vulnerability.

    Fixed in 1.31.0-21
  23. Upgrade

    Upgrade azurelinux/containerized-data-importer to a version that resolves this vulnerability.

    Fixed in 1.62.0-5
  24. Upgrade

    Upgrade azurelinux/prometheus-process-exporter to a version that resolves this vulnerability.

    Fixed in 0.8.2-4
  25. Upgrade

    Upgrade azurelinux/keda to a version that resolves this vulnerability.

    Fixed in 2.14.1-13
  26. Upgrade

    Upgrade azurelinux/ignition-flatcar to a version that resolves this vulnerability.

    Fixed in 2.22.0-3
  27. Upgrade

    Upgrade azurelinux/skopeo to a version that resolves this vulnerability.

    Fixed in 1.14.4-11
  28. Upgrade

    Upgrade azurelinux/opa to a version that resolves this vulnerability.

    Fixed in 0.63.0-4
  29. Upgrade

    Upgrade azurelinux/cert-manager to a version that resolves this vulnerability.

    Fixed in 1.12.15-8
  30. Upgrade

    Upgrade azurelinux/jx to a version that resolves this vulnerability.

    Fixed in 3.10.182-4
  31. Upgrade

    Upgrade azurelinux/gh to a version that resolves this vulnerability.

    Fixed in 2.62.0-16
  32. Upgrade

    Upgrade azurelinux/docker-compose to a version that resolves this vulnerability.

    Fixed in 2.27.0-11
  33. Upgrade

    Upgrade azurelinux/containerd2 to a version that resolves this vulnerability.

    Fixed in 2.1.6-3
  34. Upgrade

    Upgrade azurelinux/docker-buildx to a version that resolves this vulnerability.

    Fixed in 0.14.0-13
  35. Upgrade

    Upgrade azurelinux/docker-cli to a version that resolves this vulnerability.

    Fixed in 25.0.7-3
  36. Upgrade

    Upgrade azurelinux/multus to a version that resolves this vulnerability.

    Fixed in 4.0.2-8
  37. Upgrade

    Upgrade azurelinux/flannel to a version that resolves this vulnerability.

    Fixed in 0.24.2-28
  38. Upgrade

    Upgrade azurelinux/coredns to a version that resolves this vulnerability.

    Fixed in 1.11.4-17
  39. Upgrade

    Upgrade azurelinux/cloud-provider-kubevirt to a version that resolves this vulnerability.

    Fixed in 0.5.1-4
  40. Upgrade

    Upgrade azurelinux/cf-cli to a version that resolves this vulnerability.

    Fixed in 8.7.11-6
  41. Upgrade

    Upgrade azurelinux/azcopy to a version that resolves this vulnerability.

    Fixed in 10.25.1-5
  42. Upgrade

    Upgrade azurelinux/kubevirt-openvmm to a version that resolves this vulnerability.

    Fixed in 1.9.0-2
  43. Upgrade

    Upgrade azurelinux/golang to a version that resolves this vulnerability.

    Fixed in 0:1.26.8-3.azl4
  44. Upgrade

    Upgrade azurelinux/grafana to a version that resolves this vulnerability.

    Fixed in 0:10.2.6-27.azl4
  45. Upgrade

    Upgrade debian/golang-golang-x-net to a version that resolves this vulnerability.

    Fixed in 1:0.55.0-1
  46. Upgrade

    Upgrade ubuntu/golang-golang-x-net-dev to a version that resolves this vulnerability.

    Fixed in 1:0.0+git20170629.c81e7f2+dfsg-2ubuntu0.1~esm3
  47. Upgrade

    Upgrade ubuntu/golang-golang-x-net-dev to a version that resolves this vulnerability.

    Fixed in 1:0.0+git20190811.74dc4d7+dfsg-1ubuntu0.1~esm3
  48. Upgrade

    Upgrade ubuntu/golang-1.18 to a version that resolves this vulnerability.

    Fixed in 1.18.1-1ubuntu1.3
  49. Upgrade

    Upgrade ubuntu/golang-1.21 to a version that resolves this vulnerability.

    Fixed in 1.21.1-1~ubuntu22.04.4
  50. Upgrade

    Upgrade ubuntu/golang-1.23 to a version that resolves this vulnerability.

    Fixed in 1.23.1-1~22.04.3
  51. Upgrade

    Upgrade ubuntu/golang-1.24 to a version that resolves this vulnerability.

    Fixed in 1.24.13-2~22.04.2
  52. Upgrade

    Upgrade ubuntu/golang-golang-x-net to a version that resolves this vulnerability.

    Fixed in 1:0.0+git20211209.491a49a+dfsg-1ubuntu0.1
  53. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250116.00-0ubuntu1~22.04.4
  54. Upgrade

    Upgrade ubuntu/google-osconfig-agent to a version that resolves this vulnerability.

    Fixed in 20251028.00-0ubuntu2~22.04.1
  55. Upgrade

    Upgrade go/stdlib to a version that resolves this vulnerability.

    Fixed in 1.25.13
  56. Upgrade

    Upgrade go/stdlib to a version that resolves this vulnerability.

    Fixed in 1.26.6
  57. Upgrade

    Upgrade go/stdlib to a version that resolves this vulnerability.

    Fixed in 1.27.0-rc.3
  58. Upgrade

    Upgrade go/golang.org/x/net to a version that resolves this vulnerability.

    Fixed in 0.57.0
  59. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.26.8-r0
  60. Upgrade

    Upgrade alpine/prometheus to a version that resolves this vulnerability.

    Fixed in 3.5.4-r0

Event History

May 22, 2026
Advisory Published
via OSV·02:46 AM
Data Sourced
via OSV·02:46 AM
DescriptionAffected Software
CVE Published
via MITRE·03:01 PM
Data Sourced
via MITRE·03:01 PM
DescriptionWeakness
Data Sourced
via OSV·03:01 PM
Severity
Data Sourced
via Red Hat·04:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeakness
May 27, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:03 AM
WeaknessAffected Software
Updated
via Microsoft·08:03 AM
Affected Software
Event
via Microsoft·08:03 AM
Updated
via NVD·02:16 PM
Severity
May 29, 2026
Data Sourced
via NVD·03:26 PM
Affected Software
Jun 19, 2026
Updated
via Microsoft·09:40 PM
Weakness
Jun 30, 2026
Updated
via NVD·03:19 AM
SeverityWeakness
Jul 13, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jul 27, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 1, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 17, 2026
Updated
via NVD·12:18 PM
SeverityWeakness
Sep 26, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 9, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 18, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 21, 2026
Updated
via Microsoft·10:02 PM
Severity
Nov 23, 2026
Updated
via OSV·08:30 PM
Affected Software
Dec 3, 2026
Updated
via OSV·11:33 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2026-39821?

CVE-2026-39821 has a risk rating of 51, indicating a moderate severity level.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203