Vulnerability · Published May 22, 2026 · Assigned by Go

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

Critical 9.6

In plain English

A critical-severity security flaw in net/http from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.6Critical
Exploit odds (30 days)1.8%top 21.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8delve1.26.1-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:10git-lfs3.7.1-5.el10_2.5ALSA-2026:30855
AlmaLinux:8git-lfs3.4.1-11.el8_10ALSA-2026:30853
AlmaLinux:9git-lfs3.7.1-4.el9_8.1ALSA-2026:30854
AlmaLinux:10go-fdo-server1.0.1-2.el10_2.3ALSA-2026:46395
AlmaLinux:10go-fdo-server-manufacturer1.0.1-2.el10_2.3ALSA-2026:46395
AlmaLinux:10go-fdo-server-owner1.0.1-2.el10_2.3ALSA-2026:46395
AlmaLinux:10go-fdo-server-rendezvous1.0.1-2.el10_2.3ALSA-2026:46395
AlmaLinux:10go-toolset1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8go-toolset1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9go-toolset1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-bin1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-bin1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-bin1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-docs1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-docs1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-docs1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-misc1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-misc1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-misc1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-race1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-race1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-race1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-src1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-src1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-src1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10golang-tests1.26.5-1.el10_2.alma.1ALSA-2026:37436
AlmaLinux:8golang-tests1.26.5-1.module_el8.10.0+4223+bd807c2eALSA-2026:38995
AlmaLinux:9golang-tests1.26.5-1.el9_8ALSA-2026:37435
AlmaLinux:10grafana10.2.6-27.el10_2ALSA-2026:35827
AlmaLinux:8grafana9.2.10-31.el8_10ALSA-2026:35830
AlmaLinux:9grafana10.2.6-23.el9_8ALSA-2026:35828
AlmaLinux:10grafana-pcp5.3.0-7.el10_2ALSA-2026:35826
AlmaLinux:8grafana-pcp5.1.1-16.el8_10ALSA-2026:35831
AlmaLinux:9grafana-pcp5.1.1-17.el9_8ALSA-2026:35829
AlmaLinux:10grafana-selinux10.2.6-27.el10_2ALSA-2026:35827
AlmaLinux:8grafana-selinux9.2.10-31.el8_10ALSA-2026:35830
AlmaLinux:9grafana-selinux10.2.6-23.el9_8ALSA-2026:35828
AlmaLinux:10opentelemetry-collector0.152.1-1.el10_2ALSA-2026:34357
AlmaLinux:9opentelemetry-collector0.152.1-1.el9_8ALSA-2026:34359
AlmaLinux:10osbuild-composer165.1-5.el10_2.alma.1ALSA-2026:66432
AlmaLinux:8osbuild-composer101.5-2.el8_10.alma.1ALSA-2026:66016
AlmaLinux:9osbuild-composer165.1-4.el9_8.1.alma.1ALSA-2026:65153
AlmaLinux:10osbuild-composer-core165.1-5.el10_2.alma.1ALSA-2026:66432
AlmaLinux:8osbuild-composer-core101.5-2.el8_10.alma.1ALSA-2026:66016
AlmaLinux:9osbuild-composer-core165.1-4.el9_8.1.alma.1ALSA-2026:65153
AlmaLinux:10osbuild-composer-worker165.1-5.el10_2.alma.1ALSA-2026:66432
AlmaLinux:8osbuild-composer-worker101.5-2.el8_10.alma.1ALSA-2026:66016
AlmaLinux:9osbuild-composer-worker165.1-4.el9_8.1.alma.1ALSA-2026:65153
AlmaLinux:10yggdrasil0.4.9.2-1.el10_2ALSA-2026:39573
AlmaLinux:10yggdrasil-devel0.4.9.2-1.el10_2ALSA-2026:39573
Alpine:v3.24go1.26.8-r0ALPINE-CVE-2026-39821
Debian:12golang-golang-x-netno fix listedDEBIAN-CVE-2026-39821
Debian:13golang-golang-x-netno fix listedDEBIAN-CVE-2026-39821
Debian:14golang-golang-x-net1:0.55.0-1DEBIAN-CVE-2026-39821
Gogolang.org/x/net0.55.0GO-2026-5026
Gostdlib1.25.13, 1.26.6, 1.27.0-rc.3GO-2026-5026
Rocky Linux:8delve0:1.26.1-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux:10git-lfs0:3.7.1-5.el10_2.5RLSA-2026:30855
Rocky Linux:8git-lfs0:3.4.1-11.el8_10RLSA-2026:30853
Rocky Linux:9git-lfs0:3.7.1-4.el9_8.1RLSA-2026:30854
Rocky Linux:10go-fdo-server0:1.0.1-2.el10_2.3RLSA-2026:46395
Rocky Linux:10golang0:1.26.5-1.el10_2RLSA-2026:37436
Rocky Linux:8golang0:1.26.5-1.module+el8.10.0+40244+e7cb3ff8RLSA-2026:38995
Rocky Linux:9golang0:1.26.5-1.el9_8RLSA-2026:37435
Rocky Linux:10grafana0:10.2.6-27.el10_2RLSA-2026:35827
Rocky Linux:8grafana0:9.2.10-31.el8_10RLSA-2026:35830
Rocky Linux:9grafana0:10.2.6-23.el9_8RLSA-2026:35828
Rocky Linux:10grafana-pcp0:5.3.0-7.el10_2RLSA-2026:35826
Rocky Linux:8grafana-pcp0:5.1.1-16.el8_10RLSA-2026:35831
Rocky Linux:9grafana-pcp0:5.1.1-17.el9_8RLSA-2026:35829
Rocky Linux:10image-builder0:52.1-1.el10_2.2.rocky.0.1RLSA-2026:65534
Rocky Linux:9image-builder0:52.1-1.el9_8.2RLSA-2026:65886
Rocky Linux:10opentelemetry-collector0:0.152.1-1.el10_2RLSA-2026:34357
Rocky Linux:9opentelemetry-collector0:0.152.1-1.el9_8RLSA-2026:34359
Rocky Linux:10osbuild-composer0:165.1-5.el10_2.rocky.0.1RLSA-2026:66432
Rocky Linux:8osbuild-composer0:101.5-2.el8_10.rocky.0.6RLSA-2026:66016
Rocky Linux:9osbuild-composer0:165.1-4.el9_8.1.rocky.0.1RLSA-2026:65153
Rocky Linux:10yggdrasil0:0.4.9.2-1.el10_2RLSA-2026:39573
Ubuntu:22.04:LTSadsysno fix listedUBUNTU-CVE-2026-39821
Ubuntu:24.04:LTSadsysno fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.04:LTSadsysno fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.10adsysno fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTScontainerdno fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.10containerdno fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.3USN-8883-1
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.3UBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.4USN-8883-1
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.4UBUNTU-CVE-2026-39821
Ubuntu:24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2026-39821
Ubuntu:24.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.231.23.1-1~22.04.3UBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.231.23.1-1~22.04.3USN-8883-2
Ubuntu:24.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.241.24.13-2~22.04.2UBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.241.24.13-2~22.04.2USN-8883-1
Ubuntu:24.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-39821
Ubuntu:24.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.04:LTSgolang-1.25no fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-1.26no fix listedUBUNTU-CVE-2026-39821
Ubuntu:24.04:LTSgolang-1.26no fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.04:LTSgolang-1.26no fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.10golang-1.26no fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.10golang-1.27no fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-golang-x-net1:0.0+git20211209.491a49a+dfsg-1ubuntu0.1UBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgolang-golang-x-net1:0.0+git20211209.491a49a+dfsg-1ubuntu0.1USN-8900-1
Ubuntu:26.04:LTSgolang-golang-x-netno fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.10golang-golang-x-netno fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgoogle-guest-agent20250116.00-0ubuntu1~22.04.4UBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgoogle-guest-agent20250116.00-0ubuntu1~22.04.4USN-8914-1
Ubuntu:24.04:LTSgoogle-guest-agentno fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.04:LTSgoogle-guest-agentno fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.10google-guest-agentno fix listedUBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgoogle-osconfig-agent20251028.00-0ubuntu2~22.04.1UBUNTU-CVE-2026-39821
Ubuntu:22.04:LTSgoogle-osconfig-agent20251028.00-0ubuntu2~22.04.1USN-8914-1
Ubuntu:24.04:LTSgoogle-osconfig-agentno fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.04:LTSgoogle-osconfig-agentno fix listedUBUNTU-CVE-2026-39821
Ubuntu:26.10google-osconfig-agentno fix listedUBUNTU-CVE-2026-39821

Affected products (as reported)

VendorProductVersions
Go standard library net/http 0 – before 1.25.131.26.0-0 – before 1.26.61.27.0-0 – before 1.27.0-rc.3
Go standard library net/http/internal/http2 0 – before 1.25.131.26.0-0 – before 1.26.61.27.0-0 – before 1.27.0-rc.3
golang.org/x/net golang.org/x/net/idna 0 – before 0.55.0

Weakness: CWE-1289 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

References