sanitize vulnerabilities

Sanitize is an allowlist-based HTML and CSS sanitizer. It removes all HTML and/or CSS from a string except the elements, attributes, and properties you choose to allow.

Registry
RubyGems
Latest
7.0.2
License
MIT

4 known advisories

The latest version, 7.0.2, is not affected by any of them. Projects on older versions may be.

Update to the latest version:bundle update --conservative sanitize # Gemfile: '>= 7.0.2'

Is your project on an affected sanitize?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for sanitize

  • HighCVE-2023-36823GHSA-f5ww-cq3m-q3g76 Jul 2023

    Sanitize vulnerable to Cross-site Scripting via insufficient neutralization of `style` element content

    Affected
    >=3.0.0 <6.0.2
    Fixed in
    6.0.2
  • MediumCVE-2023-23627GHSA-fw3g-2h3j-qmm728 Jan 2023

    Improper neutralization of `noscript` element content may allow XSS in Sanitize

    Affected
    >=5.0.0 <6.0.1
    Fixed in
    6.0.1
  • HighCVE-2020-4054GHSA-p4x4-rw2p-8j8m16 Jun 2020

    Cross-site Scripting in Sanitize

    Affected
    >=3.0.0 <5.2.1
    Fixed in
    5.2.1
  • HighCVE-2018-3740GHSA-7f42-p84j-f58p21 Mar 2018

    Sanitize vulnerable to Improper Input Validation and Cross-site Scripting

    Affected
    >=3.0.0 <4.6.3
    Fixed in
    4.6.3

Is your sanitize version vulnerable?

Which of your client projects still run an old sanitize?

NPMscan reads the Gemfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other RubyGems packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the RubyGems registry.