{"id":"CVE-2026-78661","aliases":["CVE-2026-78661","GO-2026-6860"],"related":[],"kind":"vulnerability","state":"published","title":"Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-10-27T21:16:18.000Z","modified":"2026-11-04T17:17:37.673Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-407"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.62.0","status":"affected"}],"vendor":"golang.org/x/net","product":"golang.org/x/net/html","package":"golang.org/x/net/html","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.62.0"}],"ecosystem":"Go","package":"golang.org/x/net","purl":"pkg:golang/golang.org/x/net","source":"go"}],"references":[{"url":"https://go.dev/cl/849365","tags":["fix"],"sources":["cvelist","go","nvd"]},{"url":"https://go.dev/issue/82224","tags":["report"],"sources":["cvelist","go","nvd"]},{"url":"https://groups.google.com/g/golang-announce/c/sqrs2vTx_Xs","tags":["web"],"sources":["cvelist","go","nvd"]},{"url":"https://pkg.go.dev/vuln/GO-2026-6860","tags":[],"sources":["cvelist","nvd"]}],"credits":["Markus Magnuson"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-11-04T16:40:03.476Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-78661","url":"https://www.cve.org/CVERecord?id=CVE-2026-78661","licence":"CVE Terms of Use","modified":"2026-11-04T16:40:30.972Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6860","url":"https://pkg.go.dev/vuln/GO-2026-6860","licence":"CC-BY-4.0","modified":"2026-10-27T21:30:04.890Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-78661","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78661","licence":"Public domain","modified":"2026-11-04T17:17:37.673Z"}],"updatedAt":"2026-11-25T22:59:47.465Z","epss":{"score":0.00481,"percentile":0.43108,"date":"2026-12-01T12:00:22.000Z"}}