Skip to content
Threat Brief

← All advisories

CVE-2026-39821

Critical 9.6No known exploitationFix available

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

Record last updated

CVSS score

9.6

Critical on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

None

No EPSS score available

CISA remediation deadline

None

Not in the KEV catalog

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

Weakness: CWE-1289

Patching and mitigation

Patch status
Fix available (source: CVE record (Go))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
access.redhat.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
Go standard librarynet/httpfrom 1.26.0-0 before 1.26.61.26.6CVE Program
Go standard librarynet/httpfrom 1.27.0-0 before 1.27.0-rc.31.27.0-rc.3CVE Program
Go standard librarynet/httpall versions before 1.25.131.25.13CVE Program
Go standard librarynet/http/internal/http2from 1.26.0-0 before 1.26.61.26.6CVE Program
Go standard librarynet/http/internal/http2from 1.27.0-0 before 1.27.0-rc.31.27.0-rc.3CVE Program
Go standard librarynet/http/internal/http2all versions before 1.25.131.25.13CVE Program
golangnetall versions before 0.55.00.55.0NIST NVD
golang.org/x/netgolang.org/x/net/idnaall versions before 0.57.00.57.0CVE Program

Timeline

  1. Disclosure

    CVE record published by Go

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (Go)

    Source: CVE record (Go) (opens in a new tab)

Vendor guidance and references