StraitOfVuln
Latest / CVE-2026-78661

CVE-2026-78661

HighCVSS 7.5 (v3.1)Deferred
CVE.org ↗NVD ↗

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.

Details

CVE ID
CVE-2026-78661
Published / updated
27 Oct 2026, 22:18 UTC · last modified 04 Nov 2026, 17:17 UTC
Severity
HIGH
CVSS score
7.5 · v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N · Attack vector: Network
Affected vendor
golang.org/x/net
Affected products
golang.org/x/net/html
Affected versions
golang.org/x/net/html: before 0.62.0
From the publisher's (CNA) CVE record. NVD analysis is pending.
Fixed versions
golang.org/x/net/html 0.62.0
Exploitation status
Not in CISA KEV (no confirmed exploitation recorded)
EPSS
0.48% probability of exploitation in the next 30 days · 43% percentile (03 Dec 2026)
Weakness
Remediation
See the vendor advisory below.
Source (CNA)
security@golang.org