CVE-2026-39821

CVE-2026-39821 is a critical-severity vulnerability in Golang Net with a CVSS 3.x base score of 9.6. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-1289.

Key facts

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

Frequently asked questions

What is CVE-2026-39821?
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".
How severe is CVE-2026-39821?
CVE-2026-39821 has a CVSS 3.x base score of 9.6, rated critical severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability none.
Is CVE-2026-39821 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (38th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2026-39821?
CVE-2026-39821 affects Golang Net. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2026-39821?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2026-39821 have an EU (EUVD) identifier?
Yes. CVE-2026-39821 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-31449.
When was CVE-2026-39821 published?
CVE-2026-39821 was published on 2026-05-22 and last updated on 2026-07-08.

References

Affected products (1)

More vulnerabilities in Golang Net

All CVEs affecting Golang Net →

Other CWE-1289 vulnerabilities

Browse all CWE-1289 vulnerabilities →