vetkit.py.xss.format-html-prebuilt
format_html() receives a string that was already interpolated, so the inserted values are not escaped (XSS).
Last updated:
Suite: Security
python
format_html() receives a string that was already interpolated, so the inserted values are not escaped (XSS).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Pass a literal format string and the values as arguments: format_html("<b>{}</b>", value).
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.