9.6Critical

Golang Net

CVE-2026-39821

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 this means for your business

  • It affects Golang Net. It matters if your company, or a supplier that handles your data, runs it.
  • An attacker can use it remotely, over a network, with an ordinary user login, and without anyone at your company clicking anything.
  • FIRST's prediction model gives it a 0.7% chance of attack attempts being seen in the next 30 days, ranking above 50% of all known flaws.

What to do

  1. 1Check whether your company or your suppliers run Golang Net, and which version. The affected versions are listed further down this page.
  2. 2If you do, apply the vendor's fix. A patch or vendor advisory has been published.

Not sure if your company is exposed?

Fastnexa’s certified penetration testers can check whether attackers could use this flaw, or others like it, against your websites, apps and network. The full test is free for our first 10 founding clients until 31 December 2026.

Scoring

CVSS
9.6 (v3.1)
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Weakness
CWE-1289
Assigned by
security@golang.org

Dates

Published
2026-05-22
Last modified
2026-09-17
Sources
NVD

Affected products

  • Golang Net- 0.55.0

As listed in the NVD configuration data. Not a statement about your estate.

References