Security mailing lists by PureSourceCode

CVE-2026-78661

HIGH 7.5CVSS 3.1

Avoid 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go golang.org/x/net < 0.62.0 0.62.0

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.