ADVISORIES

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 in openSUSE

  • openSUSE-SU-2024:12145-1

    ruby3.1-rubygem-rails-html-sanitizer-1.4.3-1.1 on GA media

    CVE-2015-7578CVE-2015-7579CVE-2015-7580CVE-2018-3741 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:13137-1

    ruby3.2-rubygem-rails-html-sanitizer-1.5.0-2.1 on GA media

    CVE-2015-7578CVE-2015-7579CVE-2015-7580CVE-2018-3741 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:14175-1

    ruby3.3-rubygem-rails-html-sanitizer-1.6.0-1.5 on GA media

    CVE-2015-7578CVE-2015-7579CVE-2015-7580CVE-2018-3741 openSUSE Updated 4 February 2026
  • openSUSE-SU-2025:15125-1

    ruby3.4-rubygem-rails-html-sanitizer-1.6.0-1.7 on GA media

    CVE-2015-7578CVE-2015-7579CVE-2015-7580CVE-2018-3741 openSUSE Updated 4 February 2026
  • openSUSE-SU-2026:10361-1

    ruby4.0-rubygem-rails-html-sanitizer-1.6.0-1.9 on GA media

    CVE-2015-7578CVE-2015-7579CVE-2015-7580CVE-2018-3741 openSUSE Updated 14 March 2026

References