vetkit.go.xss.text-template-html
An HTML page is rendered with text/template, which performs no escaping (cross-site scripting).
Last updated:
Suite: Security
go
An HTML page is rendered with text/template, which performs no escaping (cross-site scripting).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Import html/template instead; it has the same API and escapes values for the HTML context.
References
Source: packages/engine/rules/sast/go.yml.
Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.