Improper Authentication Affecting golang.org/x/net/idna package, versions <0.54.0


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.66% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GOLANGORGXNETIDNA-17116876
  • published1 Jun 2026
  • disclosed22 May 2026
  • creditKC1zs4

Introduced: 22 May 2026

CVE-2026-39821  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade golang.org/x/net/idna to version 0.54.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authentication via the ToASCII and ToUnicode functions. An attacker can bypass hostname validation by submitting Punycode-encoded labels that decode to ASCII-only labels, potentially leading to privilege escalation in applications that rely on these functions for security checks.

Note: The fix depends on the Go toolchain in use having Unicode version 16 or later, which is planned for the 1.27 release.

CVSS Base Scores

version 4.0
version 3.1