rails-html-sanitizer vulnerabilities

HTML sanitization for Rails applications

Registry
RubyGems
Latest
1.7.2
License
MIT

17 known advisories

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

Update to the latest version:bundle update --conservative rails-html-sanitizer # Gemfile: '>= 1.7.2'

Is your project on an affected rails-html-sanitizer?

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 rails-html-sanitizer

  • MediumCVE-2026-128069GHSA-h7wh-q2qr-458c13 Nov 2026

    rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls

    Affected
    <1.7.2
    Fixed in
    1.7.2
  • MediumCVE-2026-128068GHSA-cpgf-5mjf-73p713 Nov 2026

    rails-html-sanitizer: Possible regular expression denial of service with certain configurations

    Affected
    >=1.0.3 <1.7.2
    Fixed in
    1.7.2
  • MediumCVE-2026-73648GHSA-cj75-f6xr-r4g721 Jul 2026

    Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations

    Affected
    >=1.0.3 <1.7.1
    Fixed in
    1.7.1
  • LowCVE-2024-53989GHSA-rxv5-gxqc-xx8g2 Dec 2024

    rails-html-sanitizer has XSS vulnerability with certain configurations

    Affected
    >=1.6.0 <1.6.1
    Fixed in
    1.6.1
  • LowCVE-2024-53987GHSA-2x5m-9ch4-qgrr2 Dec 2024

    rails-html-sanitizer has XSS vulnerability with certain configurations

    Affected
    >=1.6.0 <1.6.1
    Fixed in
    1.6.1
  • LowCVE-2024-53988GHSA-cfjx-w229-hgx52 Dec 2024

    rails-html-sanitizer has XSS vulnerability with certain configurations

    Affected
    >=1.6.0 <1.6.1
    Fixed in
    1.6.1
  • LowCVE-2024-53986GHSA-638j-pmjw-jq482 Dec 2024

    rails-html-sanitizer has XSS vulnerability with certain configurations

    Affected
    >=1.6.0 <1.6.1
    Fixed in
    1.6.1
  • LowCVE-2024-53985GHSA-w8gc-x259-rc7x2 Dec 2024

    rails-html-sanitize has XSS vulnerability with certain configurations

    Affected
    >=1.6.0 <1.6.1
    Fixed in
    1.6.1
  • MediumCVE-2022-23520GHSA-rrfc-7g8p-99q813 Dec 2022

    Possible XSS vulnerability with certain configurations of rails-html-sanitizer

    Affected
    <1.4.4
    Fixed in
    1.4.4
  • MediumCVE-2022-23519GHSA-9h9g-93gc-623h13 Dec 2022

    Possible XSS vulnerability with certain configurations of rails-html-sanitizer

    Affected
    <1.4.4
    Fixed in
    1.4.4
  • MediumCVE-2022-23518GHSA-mcvf-2q2m-x72m13 Dec 2022

    Improper neutralization of data URIs may allow XSS in rails-html-sanitizer

    Affected
    >=1.0.3 <1.4.4
    Fixed in
    1.4.4
  • HighCVE-2022-23517GHSA-5x79-w82f-gw8w13 Dec 2022

    Inefficient Regular Expression Complexity in rails-html-sanitizer

    Affected
    <1.4.4
    Fixed in
    1.4.4
  • MediumCVE-2022-32209GHSA-pg8v-g4xq-hww925 Jun 2022

    Rails::Html::Sanitizer vulnerable to Cross-site Scripting

    Affected
    <1.4.3
    Fixed in
    1.4.3
  • MediumCVE-2018-3741GHSA-px3r-jm9g-c8w826 Apr 2018

    rails-html-sanitizer Cross-site Scripting vulnerability

    Affected
    <1.0.4
    Fixed in
    1.0.4
  • MediumCVE-2015-7578GHSA-59c7-4xj2-hgvw24 Oct 2017

    rails-html-sanitizer Cross-site Scripting vulnerability

    Affected
    <1.0.3
    Fixed in
    1.0.3
  • MediumCVE-2015-7580GHSA-ghqm-pgxj-37gq24 Oct 2017

    rails-html-sanitizer Cross-site Scripting vulnerability

    Affected
    <1.0.3
    Fixed in
    1.0.3
  • MediumCVE-2015-7579GHSA-r9c2-cr39-c8g624 Oct 2017

    rails-html-sanitizer Cross-site Scripting vulnerability

    Affected
    <1.0.3
    Fixed in
    1.0.3

Is your rails-html-sanitizer version vulnerable?

Which of your client projects still run an old rails-html-sanitizer?

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.