Improper Encoding or Escaping of Output in trivy - CVE-2026-97045

 

Improper Encoding or Escaping of Output in trivy - CVE-2026-97045

Published: December 1, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to potentially inject markup into a page when an application serves rendered output from untrusted HTML.

The vulnerability exists due to incomplete ancestor namespace checks in the childTextNodesAreLiteral function of golang.org/x/net/html when deciding whether to emit text without escaping it. A remote attacker can supply HTML that the renderer handles as literal text but a browser may interpret as markup when parsing the output.


Affected software

trivy

How to mitigate CVE-2026-97045

Install security update from vendor's website.

trivy - update to 0.76.2

External References

Related Security Bulletins