| Property | |
|---|---|
| Language | generic |
| Severity | |
| CWE | CWE-79: Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’) |
| OWASP | A07:2017 - Cross-Site Scripting (XSS) |
| Confidence Level | Low |
| Impact Level | Medium |
| Likelihood Level | Low |
Description
Using Rails’ ‘content_tag’ helper can unintentionally allow unescaped user input into HTML, especially for tag and attribute names or when rendering raw HTML. This creates a risk where attackers could inject malicious scripts into your pages.