CVE-2026-39821

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

Published May 22, 2026 CVSS 3.1 · 10 Critical EPSS 1.8% KEV · Not listed
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".

Analysis

AI-generated

Technical impact

The ToASCII and ToUnicode functions in the golang.org/x/net idna package accept Punycode‑encoded labels that resolve to an ASCII‑only domain and return that name rather than raising an error. This quirk allows a Punycode hostname that looks identical to its ASCII form to bypass initial hostname validation, while later conversion to Unicode yields the same domain name. An application that performs privilege or access checks on the ASCII form but later uses the Unicode form can therefore grant privileges to an attacker, enabling privilege escalation.

Affected Systems

The vulnerability affects the Go standard library packages net/http and net/http/internal/http2, as well as the golang.org/x/net idna module. Any release of these components that predates the fix may be impacted; the advisory does not specify a precise version range, so all older versions should be evaluated for the presence of the bug.

Risk and Exploitability

The error severity is high with a CVSS score of 10 and an EPSS score of 1%, indicating that while exploitation is not widespread, the potential impact is severe. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves sending a Punycode hostname to an application that uses the Go HTTP stack or the idna package for hostname validation—typically through the Host header of an HTTP request or other user‑supplied domain inputs. If an attacker can influence the hostname used for authentication or authorization checks, privilege escalation can occur.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade golang.org/x/net to a version that includes the idna bug fix (see https://go.dev/issue/78760).
  • Upgrade the Go toolchain to a release where the standard library net/http and net/http/internal/http2 contain the patch.
  • If an immediate update is not possible, insert a validation step that rejects any Punycode label whose Unicode conversion yields a domain containing only ASCII characters before performing authorization checks.
  • Ensure that any hostname used for authentication or access control must contain at least one non‑ASCII character after conversion, treating pure‑ASCII conversions as errors.

Generated by OpenCVE AI on November 26, 2026 at 16:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8416-1 Go Networking vulnerability
Ubuntu USN Ubuntu USN USN-8900-1 Go Networking vulnerabilities
Ubuntu USN Ubuntu USN USN-8914-1 Google Guest Agent, Google OS Config Agent vulnerability
Ubuntu USN Ubuntu USN USN-8883-2 Go vulnerability
References
Link Providers
https://access.redhat.com/errata/RHSA-2026:23262 cve-icon
https://access.redhat.com/errata/RHSA-2026:23264 cve-icon
https://access.redhat.com/errata/RHSA-2026:26546 cve-icon
https://access.redhat.com/errata/RHSA-2026:26547 cve-icon
https://access.redhat.com/errata/RHSA-2026:30650 cve-icon
https://access.redhat.com/errata/RHSA-2026:30651 cve-icon
https://access.redhat.com/errata/RHSA-2026:30853 cve-icon
https://access.redhat.com/errata/RHSA-2026:30854 cve-icon
https://access.redhat.com/errata/RHSA-2026:30855 cve-icon
https://access.redhat.com/errata/RHSA-2026:33155 cve-icon
https://access.redhat.com/errata/RHSA-2026:33160 cve-icon
https://access.redhat.com/errata/RHSA-2026:33163 cve-icon
https://access.redhat.com/errata/RHSA-2026:33173 cve-icon
https://access.redhat.com/errata/RHSA-2026:33183 cve-icon
https://access.redhat.com/errata/RHSA-2026:33524 cve-icon
https://access.redhat.com/errata/RHSA-2026:33531 cve-icon
https://access.redhat.com/errata/RHSA-2026:34342 cve-icon
https://access.redhat.com/errata/RHSA-2026:34357 cve-icon
https://access.redhat.com/errata/RHSA-2026:34359 cve-icon
https://access.redhat.com/errata/RHSA-2026:34364 cve-icon
https://access.redhat.com/errata/RHSA-2026:34789 cve-icon
https://access.redhat.com/errata/RHSA-2026:35826 cve-icon
https://access.redhat.com/errata/RHSA-2026:35827 cve-icon
https://access.redhat.com/errata/RHSA-2026:35828 cve-icon
https://access.redhat.com/errata/RHSA-2026:35829 cve-icon
https://access.redhat.com/errata/RHSA-2026:35830 cve-icon
https://access.redhat.com/errata/RHSA-2026:35831 cve-icon
https://access.redhat.com/errata/RHSA-2026:35993 cve-icon
https://access.redhat.com/errata/RHSA-2026:35994 cve-icon
https://access.redhat.com/errata/RHSA-2026:36105 cve-icon
https://access.redhat.com/errata/RHSA-2026:36167 cve-icon
https://access.redhat.com/errata/RHSA-2026:36207 cve-icon
https://access.redhat.com/errata/RHSA-2026:36648 cve-icon
https://access.redhat.com/errata/RHSA-2026:36651 cve-icon
https://access.redhat.com/errata/RHSA-2026:36796 cve-icon
https://access.redhat.com/errata/RHSA-2026:36797 cve-icon
https://access.redhat.com/errata/RHSA-2026:36808 cve-icon
https://access.redhat.com/errata/RHSA-2026:36820 cve-icon
https://access.redhat.com/errata/RHSA-2026:36883 cve-icon
https://access.redhat.com/errata/RHSA-2026:37387 cve-icon
https://access.redhat.com/errata/RHSA-2026:37435 cve-icon
https://access.redhat.com/errata/RHSA-2026:37436 cve-icon
https://access.redhat.com/errata/RHSA-2026:38995 cve-icon
https://access.redhat.com/errata/RHSA-2026:39005 cve-icon
https://access.redhat.com/errata/RHSA-2026:39573 cve-icon
https://access.redhat.com/errata/RHSA-2026:39879 cve-icon
https://access.redhat.com/errata/RHSA-2026:40118 cve-icon
https://access.redhat.com/errata/RHSA-2026:40262 cve-icon
https://access.redhat.com/errata/RHSA-2026:40945 cve-icon
https://access.redhat.com/errata/RHSA-2026:41019 cve-icon
https://access.redhat.com/errata/RHSA-2026:41030 cve-icon
https://access.redhat.com/errata/RHSA-2026:41031 cve-icon
https://access.redhat.com/errata/RHSA-2026:41036 cve-icon
https://access.redhat.com/errata/RHSA-2026:41055 cve-icon
https://access.redhat.com/errata/RHSA-2026:41066 cve-icon
https://access.redhat.com/errata/RHSA-2026:41928 cve-icon
https://access.redhat.com/errata/RHSA-2026:41930 cve-icon
https://access.redhat.com/errata/RHSA-2026:42043 cve-icon
https://access.redhat.com/errata/RHSA-2026:42047 cve-icon
https://access.redhat.com/errata/RHSA-2026:42048 cve-icon
https://access.redhat.com/errata/RHSA-2026:42049 cve-icon
https://access.redhat.com/errata/RHSA-2026:42050 cve-icon
https://access.redhat.com/errata/RHSA-2026:42051 cve-icon
https://access.redhat.com/errata/RHSA-2026:42078 cve-icon
https://access.redhat.com/errata/RHSA-2026:42079 cve-icon
https://access.redhat.com/errata/RHSA-2026:42080 cve-icon
https://access.redhat.com/errata/RHSA-2026:42082 cve-icon
https://access.redhat.com/errata/RHSA-2026:42132 cve-icon
https://access.redhat.com/errata/RHSA-2026:42142 cve-icon
https://access.redhat.com/errata/RHSA-2026:42146 cve-icon
https://access.redhat.com/errata/RHSA-2026:42150 cve-icon
https://access.redhat.com/errata/RHSA-2026:42151 cve-icon
https://access.redhat.com/errata/RHSA-2026:42240 cve-icon
https://access.redhat.com/errata/RHSA-2026:42644 cve-icon
https://access.redhat.com/errata/RHSA-2026:42796 cve-icon
https://access.redhat.com/errata/RHSA-2026:42852 cve-icon
https://access.redhat.com/errata/RHSA-2026:43038 cve-icon
https://access.redhat.com/errata/RHSA-2026:43052 cve-icon
https://access.redhat.com/errata/RHSA-2026:43692 cve-icon
https://access.redhat.com/errata/RHSA-2026:44622 cve-icon
https://access.redhat.com/errata/RHSA-2026:44624 cve-icon
https://access.redhat.com/errata/RHSA-2026:46395 cve-icon
https://access.redhat.com/errata/RHSA-2026:47149 cve-icon
https://access.redhat.com/errata/RHSA-2026:47735 cve-icon
https://access.redhat.com/errata/RHSA-2026:47737 cve-icon
https://access.redhat.com/errata/RHSA-2026:47952 cve-icon
https://access.redhat.com/errata/RHSA-2026:49702 cve-icon
https://access.redhat.com/errata/RHSA-2026:49712 cve-icon
https://access.redhat.com/errata/RHSA-2026:50300 cve-icon
https://access.redhat.com/errata/RHSA-2026:50843 cve-icon
https://access.redhat.com/errata/RHSA-2026:51033 cve-icon
https://access.redhat.com/errata/RHSA-2026:51112 cve-icon
https://access.redhat.com/errata/RHSA-2026:51187 cve-icon
https://access.redhat.com/errata/RHSA-2026:51194 cve-icon
https://access.redhat.com/errata/RHSA-2026:51341 cve-icon
https://access.redhat.com/errata/RHSA-2026:52826 cve-icon
https://access.redhat.com/errata/RHSA-2026:53374 cve-icon
https://access.redhat.com/errata/RHSA-2026:53412 cve-icon
https://access.redhat.com/errata/RHSA-2026:53413 cve-icon
https://access.redhat.com/errata/RHSA-2026:53415 cve-icon
https://access.redhat.com/errata/RHSA-2026:53530 cve-icon
https://access.redhat.com/errata/RHSA-2026:54191 cve-icon
https://access.redhat.com/errata/RHSA-2026:54274 cve-icon
https://access.redhat.com/errata/RHSA-2026:54283 cve-icon
https://access.redhat.com/errata/RHSA-2026:54284 cve-icon
https://access.redhat.com/errata/RHSA-2026:54285 cve-icon
https://access.redhat.com/errata/RHSA-2026:54286 cve-icon
https://access.redhat.com/errata/RHSA-2026:54287 cve-icon
https://access.redhat.com/errata/RHSA-2026:54395 cve-icon
https://access.redhat.com/errata/RHSA-2026:54401 cve-icon
https://access.redhat.com/errata/RHSA-2026:54435 cve-icon
https://access.redhat.com/errata/RHSA-2026:54441 cve-icon
https://access.redhat.com/errata/RHSA-2026:54531 cve-icon
https://access.redhat.com/errata/RHSA-2026:54580 cve-icon
https://access.redhat.com/errata/RHSA-2026:54757 cve-icon
https://access.redhat.com/errata/RHSA-2026:56143 cve-icon
https://access.redhat.com/errata/RHSA-2026:56223 cve-icon
https://access.redhat.com/errata/RHSA-2026:56340 cve-icon
https://access.redhat.com/errata/RHSA-2026:56431 cve-icon
https://access.redhat.com/errata/RHSA-2026:57194 cve-icon
https://access.redhat.com/errata/RHSA-2026:57541 cve-icon
https://access.redhat.com/errata/RHSA-2026:57649 cve-icon
https://access.redhat.com/errata/RHSA-2026:57845 cve-icon
https://access.redhat.com/errata/RHSA-2026:59546 cve-icon
https://access.redhat.com/errata/RHSA-2026:59549 cve-icon
https://access.redhat.com/errata/RHSA-2026:59562 cve-icon
https://access.redhat.com/errata/RHSA-2026:60315 cve-icon
https://access.redhat.com/errata/RHSA-2026:60354 cve-icon
https://access.redhat.com/errata/RHSA-2026:60387 cve-icon
https://access.redhat.com/errata/RHSA-2026:60520 cve-icon
https://access.redhat.com/errata/RHSA-2026:61245 cve-icon
https://access.redhat.com/errata/RHSA-2026:61253 cve-icon
https://access.redhat.com/errata/RHSA-2026:62549 cve-icon
https://access.redhat.com/errata/RHSA-2026:63134 cve-icon
https://access.redhat.com/errata/RHSA-2026:65126 cve-icon
https://access.redhat.com/errata/RHSA-2026:65153 cve-icon
https://access.redhat.com/errata/RHSA-2026:65359 cve-icon
https://access.redhat.com/errata/RHSA-2026:65534 cve-icon
https://access.redhat.com/errata/RHSA-2026:65851 cve-icon
https://access.redhat.com/errata/RHSA-2026:65886 cve-icon
https://access.redhat.com/errata/RHSA-2026:66016 cve-icon
https://access.redhat.com/errata/RHSA-2026:66022 cve-icon
https://access.redhat.com/errata/RHSA-2026:66350 cve-icon
https://access.redhat.com/errata/RHSA-2026:66432 cve-icon
https://access.redhat.com/errata/RHSA-2026:67149 cve-icon
https://access.redhat.com/errata/RHSA-2026:67159 cve-icon
https://access.redhat.com/errata/RHSA-2026:67160 cve-icon
https://access.redhat.com/errata/RHSA-2026:67287 cve-icon
https://access.redhat.com/errata/RHSA-2026:67319 cve-icon
https://access.redhat.com/errata/RHSA-2026:67517 cve-icon
https://access.redhat.com/errata/RHSA-2026:68504 cve-icon
https://access.redhat.com/security/cve/CVE-2026-39821 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2480756 cve-icon
https://go.dev/cl/767220 cve-icon cve-icon
https://go.dev/cl/796421 cve-icon cve-icon
https://go.dev/issue/78760 cve-icon cve-icon
https://groups.google.com/g/golang-announce/c/94pEornpRlI cve-icon cve-icon
https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 cve-icon cve-icon
https://pkg.go.dev/vuln/GO-2026-5026 cve-icon cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39821.json cve-icon
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:golang:net:*:*:*:*:*:go:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Golang
Golang net
Vendors & Products Golang
Golang net
Type Values Removed Values Added
Weaknesses CWE-20
CWE-264
Type Values Removed Values Added
Weaknesses CWE-1289
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-20
CWE-264
Type Values Removed Values Added
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".
Title Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna
References
Weaknesses
  • CWE-1289

    Improper Validation of Unsafe Equivalence in Input

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Nov 23, 2026, 8:28 PM
Reserved
Apr 7, 2026, 6:13 PM
Status
Modified
Published
May 22, 2026, 4:16 PM
Modified
Nov 23, 2026, 9:17 PM