Skip to content
vetkitChecksChangelogDocumentation

vetkit.ruby.xss.erb-raw-request

An ERB template prints request data without escaping (<%== / raw / html_safe), allowing reflected XSS.

Last updated:

Suite: Security

regex

An ERB template prints request data without escaping (<%== / raw / html_safe), allowing reflected XSS.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use <%= %> (escaped by default) for request values; sanitize HTML you must keep with sanitize.

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.