{"cve":"CVE-2026-78661","nvd":{"published":"2026-10-27T22:18:05.930","modified":"2026-10-27T22:18:05.930","status":"Received","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.","cvss_v4":null,"cvss_v3":null,"cwes":[],"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"],"products":[],"source":"nvd","synced_at":"2026-10-27T22:38:42.705297859+00:00"},"epss":null,"kev":null,"osv":[{"id":"GO-2026-6860","url":"https://osv.dev/vulnerability/GO-2026-6860","summary":"Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net","modified":"2026-10-27T21:30:04.890809062Z","packages":[{"ecosystem":"Go","name":"golang.org/x/net","purl":"pkg:golang/golang.org/x/net","ranges":["<0.62.0"],"fixed":["0.62.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}