Vulnerability
CVE-2018-3741
There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML fragments, and these attributes can lead to an XSS attack on target applications. This issue is similar to CVE-2018-8048 in Loofah. All users running an affected release should either upgrade or use one of the workarounds immediately.
10 advisories report this vulnerability, across 6 ecosystems.
Advisories
-
DEBIAN-CVE-2018-3741
There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML…
-
GHSA-px3r-jm9g-c8w8
rails-html-sanitizer Cross-site Scripting vulnerability
-
RHSA-2019:0212
Red Hat Security Advisory: CloudForms 4.7 security, bug fix and enhancement update
-
SUSE-SU-2019:2182-1
Security update for rubygem-rails-html-sanitizer
-
UBUNTU-CVE-2018-3741
There is a possible XSS vulnerability in all rails-html-sanitizer gem versions below 1.0.4 for Ruby. The gem allows non-whitelisted attributes to be present in sanitized output when input with specially-crafted HTML…
-
openSUSE-SU-2024:12145-1
ruby3.1-rubygem-rails-html-sanitizer-1.4.3-1.1 on GA media
-
openSUSE-SU-2024:13137-1
ruby3.2-rubygem-rails-html-sanitizer-1.5.0-2.1 on GA media
-
openSUSE-SU-2024:14175-1
ruby3.3-rubygem-rails-html-sanitizer-1.6.0-1.5 on GA media
-
openSUSE-SU-2025:15125-1
ruby3.4-rubygem-rails-html-sanitizer-1.6.0-1.7 on GA media
-
openSUSE-SU-2026:10361-1
ruby4.0-rubygem-rails-html-sanitizer-1.6.0-1.9 on GA media