CVE-2026-78661Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as "a</x>") caused O(n^2) allocations and byte copies. Accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.
What to do
Fixed builds are available from Debian, Go: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | adsys | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.10 | containerd | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.10 | golang-1.26 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.10 | golang-1.27 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.10 | golang-golang-x-net | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.10 | google-guest-agent | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.10 | google-osconfig-agent | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.04 | adsys | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.04 | containerd | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.04 | golang-1.26 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.04 | golang-golang-x-net | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.04 | google-guest-agent | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 26.04 | google-osconfig-agent | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | adsys | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | containerd | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | golang-1.21 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | golang-1.22 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | golang-1.26 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | golang-golang-x-net | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | google-guest-agent | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 24.04 | google-osconfig-agent | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | adsys | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | containerd | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.17 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.18 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.20 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.21 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.22 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.23 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.25 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-1.26 | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | golang-golang-x-net | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | google-guest-agent | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 22.04 | google-osconfig-agent | Under investigation | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | adsys | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | containerd | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | golang-1.14 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | golang-1.20 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | golang-1.21 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | golang-1.22 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | golang-golang-x-net-dev | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | google-guest-agent | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | google-osconfig-agent | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 20.04 | lxd | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | containerd | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | golang-1.8 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | golang-1.9 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | golang-golang-x-net-dev | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | google-guest-agent | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | google-osconfig-agent | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 18.04 | lxd | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | containerd | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | golang-1.6 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | golang-golang-x-net-dev | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | google-guest-agent | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | google-osconfig-agent | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | juju-core | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 16.04 | lxd | Fix pending | UBUNTU-CVE-2026-78661 | |
| Ubuntu 14.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2026-78661 | |
| Debian 14 | golang-golang-x-net | Fixed | 1:0.62.0-1 | DEBIAN-CVE-2026-78661 |
| Debian 13 | golang-golang-x-net | Fix pending | DEBIAN-CVE-2026-78661 | |
| Debian 12 | golang-golang-x-net | Fix pending | DEBIAN-CVE-2026-78661 | |
| Red Hat Enterprise Linux 10 | conmon | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | gvisor-tap-vsock | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | gvisor-tap-vsock-gvforwarder | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | image-builder | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | opentelemetry-collector | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | osbuild-composer | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | osbuild-composer-core | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | osbuild-composer-worker | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | podman | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | podman-docker | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | podman-remote | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | podman-tests | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | buildah | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | buildah-tests | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | conmon | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | containernetworking-plugins | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | grafana | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | grafana-selinux | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | gvisor-tap-vsock | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | gvisor-tap-vsock-gvforwarder | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | image-builder | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | opentelemetry-collector | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-core | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-dnf-json | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | osbuild-composer-worker | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | podman | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | podman-catatonit | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | podman-docker | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | podman-gvproxy | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | podman-plugins | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | podman-remote | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | podman-tests | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | buildah | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | buildah-tests | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | conmon | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | containernetworking-plugins | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | containers-common | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-core | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-dnf-json | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | osbuild-composer-worker | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-catatonit | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-docker | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-gvproxy | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-manpages | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-plugins | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-remote | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | podman-tests | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | skopeo | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | skopeo-tests | Fix pending Affected | ||
| Go library | golang.org/x/net | Fixed | 0.62.0 | GO-2026-6860 |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- golang.org/x/net/html: affected: before 0.62.0; fixed in
0.62.0
References
- https://go.dev/cl/849365
- https://go.dev/issue/82224
- https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs
- https://pkg.go.dev/vuln/GO-2026-6860
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.