All rules →
Rules / Ruby
SHIELD-RUBY-016

XSS via raw or html_safe on dynamic data

highRubyCWE-79CVSS 7.4

What it detects

Marking interpolated or variable content as raw or html_safe outputs unescaped HTML, enabling XSS.

How to fix

Let Rails auto-escape output or sanitize with the sanitize helper instead of raw or html_safe.

Scan your repo freeFull documentation
Back to all rules
SHIELD-RUBY-016: XSS via raw or html_safe on dynamic data — Zennoxa Shield