Vulnerability · Published Oct 27, 2026 · Assigned by Go
CVE-2026-78661Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
High 7.5
In plain English
A high-severity security flaw in golang.org/x/net/html from golang.org/x/net. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-golang-x-net | no fix listed | DEBIAN-CVE-2026-78661 |
| Debian:13 | golang-golang-x-net | no fix listed | DEBIAN-CVE-2026-78661 |
| Debian:14 | golang-golang-x-net | 1:0.62.0-1 | DEBIAN-CVE-2026-78661 |
| Go | golang.org/x/net | 0.62.0 | GO-2026-6860 |
| Ubuntu:22.04:LTS | adsys | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:24.04:LTS | adsys | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.04:LTS | adsys | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.10 | adsys | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | containerd | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.10 | containerd | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-1.17 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-1.18 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-1.20 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:24.04:LTS | golang-1.21 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:24.04:LTS | golang-1.22 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:24.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.04:LTS | golang-1.23 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:24.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.04:LTS | golang-1.24 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:24.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.04:LTS | golang-1.25 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-1.26 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:24.04:LTS | golang-1.26 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.04:LTS | golang-1.26 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.10 | golang-1.26 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.10 | golang-1.27 | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | golang-golang-x-net | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.04:LTS | golang-golang-x-net | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.10 | golang-golang-x-net | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | google-guest-agent | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:24.04:LTS | google-guest-agent | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.04:LTS | google-guest-agent | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.10 | google-guest-agent | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:22.04:LTS | google-osconfig-agent | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:24.04:LTS | google-osconfig-agent | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.04:LTS | google-osconfig-agent | no fix listed | UBUNTU-CVE-2026-78661 |
| Ubuntu:26.10 | google-osconfig-agent | no fix listed | UBUNTU-CVE-2026-78661 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| golang.org/x/net | golang.org/x/net/html | 0 – before 0.62.0 |
Weakness: CWE-407 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N