patchminder
No public exploit found CVE-2026-39821

Privilege escalationin Go standard library net/http.

Published 22 May 2026 · Updated 23 Nov 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

Severity
Critical 9.6
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.9% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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

What to do now
  • Upgrade net/http to 1.25.13, 1.26.6, 1.27.0-rc.3 or later, whichever matches your release line.
  • Upgrade net/http/internal/http2 to 1.25.13, 1.26.6, 1.27.0-rc.3 or later, whichever matches your release line.
  • Upgrade golang.org/x/net/idna to 0.57.0 or later.
  • Upgrade stdlib (Go) to 1.25.13, 1.26.6, 1.27.0-rc.3 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
net/http
before 1.25.13
1.25.13
CVE record
net/http
1.26.0-0 to before 1.26.6
1.26.6
CVE record
net/http
1.27.0-0 to before 1.27.0-rc.3
1.27.0-rc.3
CVE record
net/http/internal/http2
before 1.25.13
1.25.13
CVE record
net/http/internal/http2
1.26.0-0 to before 1.26.6
1.26.6
CVE record
net/http/internal/http2
1.27.0-0 to before 1.27.0-rc.3
1.27.0-rc.3
CVE record
golang.org/x/net/idna
before 0.57.0
0.57.0
CVE record
stdlib (Go)
before 1.25.13
1.25.13
GitHub advisory
stdlib (Go)
1.26.0-0 to before 1.26.6
1.26.6
GitHub advisory
stdlib (Go)
1.27.0-0 to before 1.27.0-rc.3
1.27.0-rc.3
GitHub advisory
golang.org/x/net (Go)
before 0.57.0
0.57.0
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 7 Apr 2026
    CVE ID reserved by Go.
  2. 22 May 2026
    Published in the CVE List.
  3. 23 Nov 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other net/http vulnerabilities

Same weakness:

All CWE-1289 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-39821: Privilege escalation in Go standard library net/http. https://patchminder.com/cve/cve-2026-39821/ (accessed 5 December 2026).