Inefficient Algorithmic Complexity in trivy - CVE-2026-78661
Published: December 1, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service in an application that parses untrusted HTML.
The vulnerability exists due to quadratic algorithmic complexity in the addText and fosterParent functions of golang.org/x/net/html when coalescing adjacent text nodes during parsing. A remote attacker can supply HTML that causes the parser to repeatedly allocate and copy accumulated text, consuming excessive processing time and memory.