Skip to main content
VulnerabilityPublished Updated

CVE-2026-39821: Go standard library net/http · Improper Validation of Unsafe Equivalence in Input

Affects Go standard library net/httpSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 9.6 Critical · fixed in 1.27.0-rc.3 : patch Go standard library net/http as a priority.

Data as of 29 Oct 2026, 19:04 UTC

CVSS 3.1 base score
9.6Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
1.8% chance of exploitation in 30 days – higher than 78% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.27.0-rc.3, 1.26.6, 1.25.13 +1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade net/http and net/http/internal/http2 to 1.27.0-rc.3, 1.26.6 or 1.25.13; golang.org/x/net/idna to 0.55.0.

Affected software

ProductAffectedFixed in
Go standard librarynet/httpAffected
  • >=1.27.0-0 <1.27.0-rc.3
Fixed in
  • 1.27.0-rc.3
Go standard librarynet/httpAffected
  • >=1.26.0-0 <1.26.6
Fixed in
  • 1.26.6
Go standard librarynet/httpAffected
  • <1.25.13
Fixed in
  • 1.25.13
Go standard librarynet/http/internal/http2Affected
  • >=1.27.0-0 <1.27.0-rc.3
Fixed in
  • 1.27.0-rc.3
Go standard librarynet/http/internal/http2Affected
  • >=1.26.0-0 <1.26.6
Fixed in
  • 1.26.6
Go standard librarynet/http/internal/http2Affected
  • <1.25.13
Fixed in
  • 1.25.13

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available. Users and administrators should upgrade to a fixed release of golang.org/x/net that includes the corrected idna package. This can be achieved by updating the Go toolchain or rebuilding dependent packages with the patched version. Red Hat customers should apply the relevant security updates provided in their product advisories. No alternative mitigations are specified, so patching is the recommended remediation.

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

References

Community reviews

Loading reviews…