ADVISORIES

Vulnerability

CVE-2018-3740

A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.

4 advisories report this vulnerability, across 3 ecosystems.

High severity All Debian 2RubyGems 1Ubuntu 1

Advisories

  • DEBIAN-CVE-2018-3740

    A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.

    CVE-2018-3740 Debian Updated 23 October 2026
  • DSA-4358-1

    ruby-sanitize - security update

    CVE-2018-3740 Debian Updated 20 November 2026
  • GHSA-7f42-p84j-f58p

    Sanitize vulnerable to Improper Input Validation and Cross-site Scripting

    High CVE-2018-3740 RubyGems Updated 16 February 2024
  • UBUNTU-CVE-2018-3740

    A specially crafted HTML fragment can cause Sanitize gem for Ruby to allow non-whitelisted attributes to be used on a whitelisted HTML element.

    CVE-2018-3740 Ubuntu Updated 17 July 2025

References