Skip to content
vetkitChecksChangelogDocumentation

vetkit.ruby.xss.html-safe

A non-literal string is marked html_safe / passed to raw, bypassing escaping (XSS).

Last updated:

Suite: Security

ruby

A non-literal string is marked html_safe / passed to raw, bypassing escaping (XSS).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Let Rails escape output, or sanitize with sanitize and an allow-list.

References

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