← Vulnerability feed

Vulnerability record · CVE-2026-39821 · published 22 May 2026

CVE-2026-39821: Golang net vulnerability

Golang · Net

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

9.6 CVSS 3.1 Critical EPSS 0.69% · top 49.1% CWE-1289 · CWE-1289
9.6CVSS 3.1 base score
0.69%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
159References
17 Sep 2026Last modified by NVD

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

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://go.dev/cl/767220 Issue Tracking
https://go.dev/issue/78760 Issue Tracking
https://groups.google.com/g/golang-announce/c/94pEornpRlI
https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8 Mailing List
https://pkg.go.dev/vuln/GO-2026-5026 Vendor Advisory
https://access.redhat.com/errata/RHSA-2026:23262
https://access.redhat.com/errata/RHSA-2026:23264
https://access.redhat.com/errata/RHSA-2026:26546
https://access.redhat.com/errata/RHSA-2026:26547
https://access.redhat.com/errata/RHSA-2026:30650
https://access.redhat.com/errata/RHSA-2026:30651
https://access.redhat.com/errata/RHSA-2026:30853
https://access.redhat.com/errata/RHSA-2026:30854
https://access.redhat.com/errata/RHSA-2026:30855
https://access.redhat.com/errata/RHSA-2026:33155
https://access.redhat.com/errata/RHSA-2026:33160
https://access.redhat.com/errata/RHSA-2026:33163
https://access.redhat.com/errata/RHSA-2026:33173
https://access.redhat.com/errata/RHSA-2026:33183
https://access.redhat.com/errata/RHSA-2026:33524
https://access.redhat.com/errata/RHSA-2026:33531
https://access.redhat.com/errata/RHSA-2026:34342
https://access.redhat.com/errata/RHSA-2026:34357
https://access.redhat.com/errata/RHSA-2026:34359
https://access.redhat.com/errata/RHSA-2026:34364
https://access.redhat.com/errata/RHSA-2026:34789
https://access.redhat.com/errata/RHSA-2026:35826
https://access.redhat.com/errata/RHSA-2026:35827
https://access.redhat.com/errata/RHSA-2026:35828
https://access.redhat.com/errata/RHSA-2026:35829
https://access.redhat.com/errata/RHSA-2026:35830
https://access.redhat.com/errata/RHSA-2026:35831
https://access.redhat.com/errata/RHSA-2026:35993
https://access.redhat.com/errata/RHSA-2026:35994
https://access.redhat.com/errata/RHSA-2026:36105
https://access.redhat.com/errata/RHSA-2026:36167
https://access.redhat.com/errata/RHSA-2026:36207
https://access.redhat.com/errata/RHSA-2026:36648
https://access.redhat.com/errata/RHSA-2026:36651
https://access.redhat.com/errata/RHSA-2026:36796

Track CVE-2026-39821 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

7.5CVE-2018-17846Golang net vulnerabilityThe html package (aka x/net/html) through 2018-09-25 in Go mishandles <table><math><select><mi><select></table>, leading to an infinite loop during a…EPSS 2.5%7.5CVE-2018-17847Golang net memory buffer overflow vulnerabilityThe html package (aka x/net/html) through 2018-09-25 in Go mishandles <svg><template><desc><t><svg></template>, leading to a "panic: runtime error" (…EPSS 2.4%7.5CVE-2018-17848Golang net vulnerabilityThe html package (aka x/net/html) through 2018-09-25 in Go mishandles <math><template><mn><b></template>, leading to a "panic: runtime error" (index …EPSS 2.2%7.5CVE-2018-17142Golang net null pointer dereference vulnerabilityThe html package (aka x/net/html) through 2018-09-17 in Go mishandles <math><template><mo><template>, leading to a "panic: runtime error" in parseCur…EPSS 2.4%7.5CVE-2018-17143Golang net memory buffer overflow vulnerabilityThe html package (aka x/net/html) through 2018-09-17 in Go mishandles <template><tBody><isindex/action=0>, leading to a "panic: runtime error" in inB…EPSS 2.8%7.5CVE-2018-17075Golang net null pointer dereference vulnerabilityThe html package (aka x/net/html) before 2018-07-13 in Go mishandles "in frameset" insertion mode, leading to a "panic: runtime error" for html.Parse…EPSS 2.8%6.5CVE-2026-25680Golang net uncontrolled resource consumption vulnerabilityParsing arbitrary HTML can consume excessive CPU time, possibly leading to denial of service.EPSS 0.46%6.1CVE-2026-27136Golang net clickjacking vulnerabilityParsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in app…EPSS 0.22%

Source: NIST National Vulnerability Database (record CVE-2026-39821), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.