Skip to main content

CVE-2026-39821 — Vulnerability in golang.org/x/net — CVE Details

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

Published May 22, 2026Updated November 14, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.49%). Schedule for your next planned update.

Does your project use an affected golang.org/x/net version?

Paste your go.sum to check it for CVE-2026-39821 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

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

Advisory Timeline

  • First published May 22, 2026 (188 days ago).
  • Last revised November 14, 2026 — 176 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update golang.org/x/net to 0.55.0 or later
go get golang.org/x/net@v0.55.0
Go
Update stdlib to 1.25.13 or later
go get stdlib@v1.25.13

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Go (2).

PackageFixed In
golang.org/x/net Go · Affected: All versions0.55.0
stdlib Go · Affected: All versions1.25.13, 1.26.6, 1.27.0-rc.3

Frequently Asked Questions

What is CVE-2026-39821?
Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna. This vulnerability has been assigned a severity rating of Unknown.
How do I check if my project is affected by CVE-2026-39821?
CVE-2026-39821 affects golang.org/x/net and stdlib. It has a 1.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-39821 and 200,000+ other known vulnerabilities.

Severity & Exploitability

EPSS Score (30-day exploit probability)
1.49%
EPSS percentile: 74.4

This is an above-median EPSS score — 74.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GO-2026-5026

Related CVEs

  • CVE-2021-31525

    Panic due to large headers in net/http and golang.org/x/net/http/httpguts

  • CVE-2026-33814

    Infinite loop in HTTP/2 transport when given bad SETTINGS_MAX_FRAME_SIZE in net/http/internal/http2 in golang.org/x/net

  • CVE-2026-46600

    Parsing an invalid SVCB or HTTPS RR can panic in golang.org/x/net/dns/dnsmessage

  • CVE-2026-78659

    HTTP/2 server memory exhaustion due to Trailer headers in net/http

  • CVE-2026-78660

    HTTP/2 transport accepts malformed framing-related headers in net/http

  • CVE-2026-78669

    Excessive CPU consumption from repeated initial window changes in net/http

  • CVE-2026-78663

    Double flow control refund on HTTP/2 server streams in net/http

  • CVE-2026-97032

    HTTP/2 server crash due to HPACK encoder race in net/http

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum