---
title: CVE-2026-39821
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2026-39821
---

# CVE-2026-39821

Publication date 22 May 2026

Last updated 18 October 2026

---

Ubuntu priority

**High**

[Why this priority?](https://ubuntu.com/security/CVE-2026-39821#priority-reason )

## Cvss 3 Severity Score

**9.6 · Critical**

[Score breakdown](https://ubuntu.com/security/CVE-2026-39821#impact-score)

Toggle side navigation

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

[Read the notes from the security team](https://ubuntu.com/security/CVE-2026-39821#notes)

### Why is this CVE high priority?

This is a critical issue

[Learn more about Ubuntu priority](https://ubuntu.com/security/cves/about#priority)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| golang-golang-x-net | 26.10 stonking | Vulnerable |
| 26.04 LTS resolute | Vulnerable |
| 24.04 LTS noble | Vulnerable |
| 22.04 LTS jammy | Fixed in 1:0.0+git20211209.491a49a+dfsg-1ubuntu0.1 |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| google-guest-agent | 26.10 stonking | Needs evaluation |
| 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Fixed in 20250116.00-0ubuntu1~22.04.4 |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Needs evaluation |
| 14.04 LTS trusty | Not in release |
| google-osconfig-agent | 26.10 stonking | Needs evaluation |
| 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Fixed in 20251028.00-0ubuntu2~22.04.1 |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Needs evaluation |
| containerd | 26.10 stonking | Needs evaluation |
| 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Needs evaluation |
| 14.04 LTS trusty | Ignored end of standard support |
| golang-golang-x-net-dev | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 25.10 questing | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Fixed in 1:0.0+git20190811.74dc4d7+dfsg-1ubuntu0.1~esm3  Ubuntu Pro |
| 18.04 LTS bionic | Fixed in 1:0.0+git20170629.c81e7f2+dfsg-2ubuntu0.1~esm3  Ubuntu Pro |
| 16.04 LTS xenial | Not affected |
| adsys | 26.10 stonking | Needs evaluation |
| 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Needs evaluation |
| juju-core | 16.04 LTS xenial | Needs evaluation |
| lxd | 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Needs evaluation |
| golang | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.6 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Needs evaluation |
| 14.04 LTS trusty | Not in release |
| golang-1.8 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.9 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.10 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Needs evaluation |
| 14.04 LTS trusty | Needs evaluation |
| golang-1.13 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Needs evaluation |
| 14.04 LTS trusty | Not in release |
| golang-1.14 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.16 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.17 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.18 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Fixed in 1.18.1-1ubuntu1.3 |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Needs evaluation |
| 16.04 LTS xenial | Needs evaluation |
| 14.04 LTS trusty | Not in release |
| golang-1.19 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.20 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.21 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Fixed in 1.21.1-1~ubuntu22.04.4 |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.22 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Needs evaluation |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.23 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Fixed in 1.23.1-1~22.04.3 |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.24 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Fixed in 1.24.13-2~22.04.2 |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.25 | 26.10 stonking | Not in release |
| 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.26 | 26.10 stonking | Needs evaluation |
| 26.04 LTS resolute | Needs evaluation |
| 24.04 LTS noble | Needs evaluation |
| 22.04 LTS jammy | Needs evaluation |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.27 | 26.10 stonking | Needs evaluation |
| 26.04 LTS resolute | Not in release |
| 24.04 LTS noble | Not in release |
| 22.04 LTS jammy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2026-39821#patch-details)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Notes

---

### [octagalland](https://launchpad.net/~octagalland)

google-guest-agent, adsys, juju-core and lxd contain a vendored
copy of golang-golang-x-net

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

containerd contains a vendored copy of golang-golang-x-net

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

This issue affects multiple go components:
- net/http
- net/http/internal/http2
- golang.org/x/net/idna
Not only do vendored instances of golang.org/x/net/idna need
to be fixed, but the stdlib in golang needs to be fixed first
before everything is rebuilt.
The fix for this issue possibly introduces a bug with hosts that
contain a trailing period. (See regression bug below)

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| golang-golang-x-net | * Upstream:   [8c4c965](https://github.com/golang/net/commit/8c4c965e028475082408749b50ed7a686df0d265) * Upstream:   [f05f21b](https://github.com/golang/net/commit/f05f21be5927155a88b371674c298ada54b71cf5) |
| golang-golang-x-net-dev | * Upstream:   [8c4c965](https://github.com/golang/net/commit/8c4c965e028475082408749b50ed7a686df0d265) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

9.6 · Critical

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | Low |
  | User interaction | None |
  | Scope | Changed |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 9.6 · Critical |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-39821)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-39821)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2026-39821)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2026-39821)

### Related Ubuntu Security Notices (USN)

+ [USN-8416-1](https://usn.ubuntu.com/USN-8416-1)
+ Go Networking vulnerability
+ 9 June 2026

+ [USN-8883-1](https://usn.ubuntu.com/USN-8883-1)
+ Go vulnerability
+ 6 October 2026

+ [USN-8900-1](https://usn.ubuntu.com/USN-8900-1)
+ Go Networking vulnerabilities
+ 7 October 2026

+ [USN-8914-1](https://usn.ubuntu.com/USN-8914-1)
+ Google Guest Agent, Google OS Config Agent vulnerability
+ 12 October 2026

+ [USN-8883-2](https://usn.ubuntu.com/USN-8883-2)
+ Go vulnerability
+ 15 October 2026

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2026-39821>
* <https://groups.google.com/g/golang-announce/c/iI-mYSI0lu8>
* <https://pkg.go.dev/vuln/GO-2026-5026>
