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

  • 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…

    CVE-2018-3741 Debian Updated 23 October 2026
  • GHSA-px3r-jm9g-c8w8

    rails-html-sanitizer Cross-site Scripting vulnerability

    Moderate CVE-2018-3741 RubyGems Updated 8 November 2023
  • RHSA-2019:0212

    Red Hat Security Advisory: CloudForms 4.7 security, bug fix and enhancement update

    CVE-2012-6685CVE-2018-11627CVE-2018-3741CVE-2018-8048 Red Hat Updated 23 November 2026
  • SUSE-SU-2019:2182-1

    Security update for rubygem-rails-html-sanitizer

    CVE-2018-3741 SUSE Updated 4 February 2026
  • 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…

    CVE-2018-3741 Ubuntu Updated 24 October 2025
  • 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