Inefficient Algorithmic Complexity in trivy - CVE-2026-78661

 

Inefficient Algorithmic Complexity in trivy - CVE-2026-78661

Published: December 1, 2026


Vulnerability identifier: #VU171574
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-78661
CWE-ID: CWE-407
Exploitation vector: Remote access
Exploit availability: No public exploit available

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.


Affected software

trivy

How to mitigate CVE-2026-78661

Install security update from vendor's website.

trivy - update to 0.76.2

External References

Related Security Bulletins