Skip to main content
EPSS 0.7%top 49%

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

0
Critical
VulnerabilityCVE-2026-39821cvecve-2026-39821cwe-1289
Published: 05/22/2026 (05/22/2026, 15:01:21 UTC)
Source: CVE Database V5
Vendor/Project: Go standard library
Product: net/http

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

CVSS v3.1

Score 9.6critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Affected software

Go standard library

net/http

Affected versions
>=0 <1.25.13>=1.26.0-0 <1.26.6>=1.27.0-0 <1.27.0-rc.3

Go standard library

net/http/internal/http2

Affected versions
>=0 <1.25.13>=1.26.0-0 <1.26.6>=1.27.0-0 <1.27.0-rc.3

golang.org/x/net

golang.org/x/net/idna

Affected versions
>=0 <0.55.0
golang.org/x/net/idna
pkg:golang/golang.org/x/net/idna
Affected versions
=0
net/http
pkg:golang/net/http
Affected versions
>=0 <1.25.13>=1.26.0-0 <1.26.6>=1.27.0-0 <1.27.0-rc.3
net/http/internal/http2
pkg:golang/net/http/internal/http2
Affected versions
>=0 <1.25.13>=1.26.0-0 <1.26.6>=1.27.0-0 <1.27.0-rc.3
golang.org/x/net/idna
pkg:golang/golang.org/x/net/idna
Affected versions
>=0 <0.55.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 13:08:29 UTC

Technical Analysis

The vulnerability arises from improper validation of Punycode-encoded labels in the ToASCII and ToUnicode functions of golang.org/x/net/idna. These functions incorrectly accept Punycode labels that decode to ASCII-only hostnames, returning the ASCII name instead of an error. This behavior can cause privilege escalation in applications that first validate ASCII hostnames and then convert them to Unicode, potentially granting access to hostnames that should have been blocked. The issue is tracked as CWE-1289 (Improper Validation of Unsafe Equivalence in Input). Red Hat's advisory confirms broad exposure across products shipping the Go toolchain or bundling golang.org/x/net, including RHEL, OpenShift, and Ceph components. The vulnerability has a CVSS v3.1 score of 9.6 (critical) with network attack vector, low privileges required, no user interaction, and high confidentiality and integrity impact. Red Hat recommends upgrading to fixed versions of golang.org/x/net that include the idna correction.

Potential Impact

This vulnerability can lead to privilege escalation by allowing attackers to bypass hostname-based access controls. Applications that rely on ASCII hostname validation may incorrectly permit access to restricted hostnames after Unicode normalization, potentially exposing sensitive resources. The impact includes high confidentiality and integrity risks but no availability impact. The vulnerability affects a broad range of products that include the affected Go packages, increasing the potential attack surface.

Mitigation Recommendations

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Go
Date Reserved
2026-04-07T18:13:03.526Z
State
PUBLISHED
Vendor Advisory Urls
[{"url":"https://access.redhat.com/security/cve/CVE-2026-39821","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30855","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30853","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30854","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30651","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26547","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:26546","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:23262","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:23264","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33155","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33160","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33163","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33173","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33183","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:30650","vendor":"Red Hat"}]

Threat ID: 6a1079f0e1370fbb48159db0

Added to database: 05/22/2026, 15:44:48 UTC

Last enriched: 08/14/2026, 13:08:29 UTC

Last updated: 09/14/2026, 22:11:26 UTC

Views: 531

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

External Links

NVD DatabaseMITRE CVEReference 1Reference 2Reference 3Reference 4Reference 5Reference 6Reference 7Reference 8Reference 9Reference 10Reference 11Reference 12Reference 13Reference 14Reference 15Reference 16Reference 17Reference 18Reference 19Reference 20Reference 21Reference 22Reference 23Reference 24Reference 25Reference 26Reference 27Reference 28Reference 29Reference 30Reference 31Reference 32Reference 33Reference 34Reference 35Reference 36Reference 37Reference 38Reference 39Reference 40Reference 41Reference 42Reference 43Reference 44Reference 45Reference 46Reference 47Reference 48Reference 49Reference 50Reference 51Reference 52Reference 53Reference 54Reference 55Reference 56Reference 57Reference 58Reference 59Reference 60Reference 61Reference 62Reference 63Reference 64Reference 65Reference 66Reference 67Reference 68Reference 69Reference 70Reference 71Reference 72Reference 73Reference 74Reference 75Reference 76Reference 77Reference 78Reference 79Reference 80Reference 81Reference 82Reference 83Reference 84Reference 85Reference 86Reference 87Reference 88Reference 89Reference 90Reference 91Reference 92Reference 93Reference 94Reference 95Reference 96Reference 97Reference 98Reference 99Reference 100Reference 101Reference 102Reference 103Reference 104Reference 105Reference 106Reference 107Reference 108Reference 109Reference 110Reference 111Reference 112Reference 113Reference 114Reference 115Reference 116Reference 117Reference 118Reference 119Reference 120Reference 121Reference 122Reference 123Reference 124Reference 125Reference 126Reference 127Reference 128Reference 129Reference 130Reference 131Reference 132Reference 133Reference 134Reference 135Reference 136Reference 137Reference 138Reference 139Reference 140Reference 141Reference 142Reference 143Reference 144Reference 145Reference 146Reference 147Reference 148Reference 149Reference 150Reference 151Reference 152Reference 153Search on Google

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses