net/http: Improper Validation of Unsafe Equivalence in Input
CVE-2026-39821 is a high-severity improper validation of unsafe equivalence in input vulnerability in net/http from Go standard library, with a CVSS 3.1 base score of 8.2 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. The record lists versions 1.25.13, 1.26.6, 1.27.0-rc.3 as the first without the flaw, so updating net/http to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 1.83% chance of exploitation within 30 days, higher than 79% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update net/http to 1.25.13 or 1.26.6 or 1.27.0-rc.3, whichever matches your release line, or a later version.
- Update net/http/internal/http2 to 1.25.13 or 1.26.6 or 1.27.0-rc.3, whichever matches your release line, or a later version.
- Update golang.org/x/net/idna to 0.55.0 or a later version.
- Read the advisory on pkg.go.dev for workarounds and exact fixed builds.
Affected products and versions
Version data comes from the organisation that assigned the CVE; 35 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- HighSuccess depends on conditions outside the attacker's control.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- ChangedThe attack can reach beyond the vulnerable component into other systems.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N. Scored by CNA.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.6 | Critical | CISA (ADP) |
| CVSS 3.1 | 8.2 | High | CNA |
Official 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".
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Validation of Unsafe Equivalence in Input
The product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value.
More Improper Validation of Unsafe Equivalence in Input vulnerabilities (CWE-1289)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Other references
- go.dev/cl/767220Issue Tracking
- go.dev/issue/78760Issue Tracking
- groups.google.com/g/golang-announce/c/94pEornpRlI
- groups.google.com/g/golang-announce/c/iI-mYSI0lu8Mailing List
- access.redhat.com/errata/RHSA-2026:23262
- access.redhat.com/errata/RHSA-2026:23264
- access.redhat.com/errata/RHSA-2026:26546
- access.redhat.com/errata/RHSA-2026:26547
- access.redhat.com/errata/RHSA-2026:30650
- access.redhat.com/errata/RHSA-2026:30651
- access.redhat.com/errata/RHSA-2026:30853
- access.redhat.com/errata/RHSA-2026:30854
- access.redhat.com/errata/RHSA-2026:30855
- access.redhat.com/errata/RHSA-2026:33155
- access.redhat.com/errata/RHSA-2026:33160
Other vulnerabilities in net/http
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 9.1 Critical severity
- 7.5 High severity
Recent Improper Validation of Unsafe Equivalence in Input vulnerabilities
- 7.1 High severity
- 7.2 High severity
- 7.8 High severity
Spotted an error? Tell us.