CVE-2026-78661
HIGH 7.5CVSS 3.1Avoid 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.
- Published
- 27 Oct 2026
- Last modified
- 4 Nov 2026
- Assigned by
- security@golang.org
- NVD status
- Deferred
- Weakness
- CWE-407
- Also known as
- GO-2026-6860
- Sources
- NVDJSONOSV GO-2026-6860JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | golang.org/x/net | < 0.62.0 | 0.62.0 |
References
- https://go.dev/cl/849365 · FIX
- https://go.dev/issue/82224 · REPORT
- https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs · WEB
- https://pkg.go.dev/vuln/GO-2026-6860
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 27 Oct 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 27 Oct 2026)