Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.xss.jinja2-autoescape-disabled

A Jinja2 environment is created with autoescape=False. If it renders HTML, every variable is inserted unescaped (XSS).

Last updated:

Suite: Security

python

A Jinja2 environment is created with autoescape=False. If it renders HTML, every variable is inserted unescaped (XSS).

Category: SECURITY · Engine rule severity: INFO

How to fix it

Use autoescape=select_autoescape(["html", "xml"]) for environments that render HTML.

References

Source: packages/engine/rules/sast/python.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.