Improper Encoding or Escaping of Output in trivy - CVE-2026-97045
Published: December 1, 2026
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.