{"id":"CVE-2026-78661","published":"2026-10-27T21:38:56Z","modified":"2026-11-04T16:40:30Z","title":"Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net","vendor":"golang.org/x/net","product":"golang.org/x/net/html","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00481,"percentile":0.42319,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://go.dev/cl/849365","tags":[]},{"url":"https://go.dev/issue/82224","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-6860","tags":[]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":8.46},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"golang-org-x-net","affectedVersions":[{"vendor":"golang.org/x/net","product":"golang.org/x/net/html","versions":["< 0.62.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-04T16:40:03.476042Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"golang.org/x/net","vulnerableRanges":["<0.62.0"],"patched":["0.62.0"],"from":["GO-2026-6860"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-111399","exploited":false,"provenance":"source"}}