actionview is vulnerable to Cross-Site Scripting (XSS)
61
CVE Score
Medium
Cross-Site Scripting (XSS)
highlight and simple_format in actionview sanitize input and then split the resulting HTML as a string. With the HTML5 sanitizer, Nokogiri leaves < and > unescaped inside attribute values, so a > or a blank line in an attribute can turn markup that the sanitizer left inert into live elements in the helper's html_safe output. Untrusted text passed to highlight, or to simple_format with HTML options, can therefore run as markup. The fix requires a sanitizer stack that escapes those characters in attribute values.
Upgrade the actionview library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and the application passes untrusted text to highlight or simple_format while using the HTML5 sanitizer.
4.1.0 - 8.0.5.1
Fixed in 8.0.5.28.1.0 - 8.1.4
Fixed in 8.1.4.1actionview is vulnerable to Cross-Site Scripting (XSS) in versions 4.1.0 - 8.0.5.1 and 8.1.0 - 8.1.4.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.