Skip to main content
← All vulnerabilities
CVE-2026-39821GO-2026-5026

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.25.13, 1.26.6, 1.27.0-rc.3, 0.55.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • net/http

    fixed in 1.25.13; From 1.26.0-0 · fixed in 1.26.6; From 1.27.0-0 · fixed in 1.27.0-rc.3

  • net/http/internal/http2

    fixed in 1.25.13; From 1.26.0-0 · fixed in 1.26.6; From 1.27.0-0 · fixed in 1.27.0-rc.3

  • golang.org/x/net/idna

    fixed in 0.55.0

  • stdlibGo

    fixed in 1.25.13; From 1.26.0-0 · fixed in 1.26.6; From 1.27.0-0 · fixed in 1.27.0-rc.3

  • golang.org/x/netGo

    fixed in 0.55.0

References 5

go.dev

groups.google.com

pkg.go.dev