cve.bz

CVE-2026-39821 golang net

9.6 criticalEPSS 1.8%Fix available

Critical (9.6) in golang net. EPSS 1.8% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.25.13, 1.26.6, 1.27.0-rc.3.

On this page
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".

Severity

CVSS 3.1

9.6 critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
EPSS
1.8% (unchanged from 1.8% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 79th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1289 Improper Validation of Unsafe Equivalence in Input
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-39821 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-39821?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-39821?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-39821 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library net/httpbefore 1.25.13
Go standard library net/httpfrom 1.26.0-0 before 1.26.6
Go standard library net/httpfrom 1.27.0-0 before 1.27.0-rc.3
Go standard library net/http/internal/http2before 1.25.13
Go standard library net/http/internal/http2from 1.26.0-0 before 1.26.6
Go standard library net/http/internal/http2from 1.27.0-0 before 1.27.0-rc.3
golang.org/x/net/idnabefore 0.55.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2026-5026Gostdlib<1.25.13
>=1.26.0-0 <1.26.6
>=1.27.0-0 <1.27.0-rc.3
1.25.13, 1.26.6, 1.27.0-rc.3
GO-2026-5026Gogolang.org/x/net<0.55.00.55.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-golang-x-netno fix listedDEBIAN-CVE-2026-39821
Debian14golang-golang-x-net1:0.55.0-1DEBIAN-CVE-2026-39821
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2026-39821
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2026-39821
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2026-39821
Ubuntu20.04:LTSlxd, golang-1.13, golang-1.14 and 4 moreno fix listedUBUNTU-CVE-2026-39821
Ubuntu22.04:LTSadsys, containerd, golang-1.17 and 4 moreno fix listedUBUNTU-CVE-2026-39821
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.3UBUNTU-CVE-2026-39821 USN-8883-1
Ubuntu22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.4UBUNTU-CVE-2026-39821 USN-8883-1
Ubuntu22.04:LTSgolang-1.231.23.1-1~22.04.3UBUNTU-CVE-2026-39821 USN-8883-2
Ubuntu22.04:LTSgolang-1.241.24.13-2~22.04.2UBUNTU-CVE-2026-39821 USN-8883-1
Ubuntu22.04:LTSgolang-golang-x-net1:0.0+git20211209.491a49a+dfsg-1ubuntu0.1UBUNTU-CVE-2026-39821 USN-8900-1
Ubuntu22.04:LTSgoogle-guest-agent20250116.00-0ubuntu1~22.04.4UBUNTU-CVE-2026-39821 USN-8914-1
Ubuntu22.04:LTSgoogle-osconfig-agent20251028.00-0ubuntu2~22.04.1UBUNTU-CVE-2026-39821 USN-8914-1
11 more for Ubuntu in the JSON and on Ubuntu's page.
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.15.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cffi1.17.1-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cryptography3.3.2-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cssselect1.3.0-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-editables0.5-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test1.2.2-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-flit-core3.12.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test25.1.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test0.5.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatchling1.31.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-idna3.10-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-iniconfig2.1.0-90002.3.3.1SUSE-SU-2026:4582-1
263 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

golang.org/x/net/idna is vulnerable to privilege escalation through incorrect Punycode label handling in ToASCII and ToUnicode. An attacker who can supply a Punycode hostname that passes an ASCII-only authorization check may have it normalized to a restricted ASCII name the application intended to block. Red Hat exposure is broad across products shipping the Go toolchain or bundling golang.org/x/net, including RHEL and RHEL-AI golang RPMs, hummingbird Go runtimes, OpenShift and ODF container builds, and Ceph/OpenShift components compiled against affected x/net versions.

Red Hat's mitigation

Upgrade to a fixed golang.org/x/net release that includes the idna correction, via updated golang or dependent package rebuilds.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8receptor-0:1.6.6-1.el8apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.5 for RHEL 9receptor-0:1.6.6-1.el9apFixed 2026-07-20RHSA-2026:42078
Red Hat Ansible Automation Platform 2.6 for RHEL 10receptor-0:1.6.6-1.el10apFixed 2026-07-20RHSA-2026:42079
Red Hat Ansible Automation Platform 2.6 for RHEL 9receptor-0:1.6.6-1.el9apFixed 2026-07-20RHSA-2026:42079
Red Hat Ansible Automation Platform 2.7 for RHEL 10receptor-0:1.6.6-1.el10apFixed 2026-07-20RHSA-2026:42080
Red Hat Ansible Automation Platform 2.7 for RHEL 9receptor-0:1.6.6-1.el9apFixed 2026-07-20RHSA-2026:42080
Red Hat Enterprise Linux 10git-lfs-0:3.7.1-5.el10_2.5Fixed 2026-06-29RHSA-2026:30855
Red Hat Enterprise Linux 10opentelemetry-collector-0:0.152.1-1.el10_2Fixed 2026-07-01RHSA-2026:34357
Red Hat Enterprise Linux 10grafana-pcp-0:5.3.0-7.el10_2Fixed 2026-07-06RHSA-2026:35826
Red Hat Enterprise Linux 10grafana-0:10.2.6-27.el10_2Fixed 2026-07-06RHSA-2026:35827
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Affected
cert-manager Operator for Red Hat OpenShiftcert-manager/cert-manager-operator-rhel9Affected
Compliance Operatorcompliance/openshift-compliance-operator-bundleAffected
Confidential Compute Attestationbuild-of-trustee/trustee-rhel9-operatorWill not fix
Confidential Compute Attestationopenshift-sandboxed-containers/osc-monitor-rhel9Will not fix
Cryostat 4cryostat/cryostat-storage-rhel9Not affected
Deployment Validation Operatordvo/deployment-validation-rhel8-operatorAffected
ExternalDNS Operatoredo/external-dns-rhel9Affected
ExternalDNS Operatoredo/external-dns-rhel9-operatorAffected
External Secrets Operator for Red Hat OpenShiftexternal-secrets-operator/external-secrets-rhel9Will not fix
579 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-39821.

References

Check your stackJSON