Cross-Site Scripting in Ruby's rails-html-sanitizer by Ruby on Rails
CVE-2018-3741
6.1MEDIUM
What is CVE-2018-3741?
The rails-html-sanitizer gem, used in Ruby applications, is vulnerable to Cross-Site Scripting (XSS) attacks in all versions prior to 1.0.4. This vulnerability occurs due to the inclusion of non-whitelisted attributes in the sanitized output when processing carefully crafted HTML snippets. Attackers can exploit this flaw to inject malicious scripts, potentially compromising the security of web applications that rely heavily on the sanitization provided by this gem. Developers are strongly encouraged to upgrade to version 1.0.4 or later to mitigate this risk, or to implement provided workarounds immediately.
Affected Version(s)
rails-html-sanitizer <= 1.0.3