RubyGems (Ruby)Worst: High20 advisories

rails-html-sanitizer: known vulnerabilities

rails-html-sanitizer has 20 reviewed security advisories in the GitHub Advisory Database — 1 high, 14 moderate, 5 low. The most recent was published 2026-11-13. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the rails-html-sanitizer versions running across your servers, containers and images, and ranks what to patch first.

How to fix rails-html-sanitizer

Upgrade rails-html-sanitizer to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update rails-html-sanitizer to 1.7.2 (or gem install rails-html-sanitizer -v 1.7.2)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (20)

rails-html-sanitizer: Possible regular expression denial of service with certain configurations Moderate 5.3 CWE-1333 CWE-400 — Affected: from 1.0.3 up to 1.7.2. Fixed in 1.7.2. Published 2026-11-13. GHSA-cpgf-5mjf-73p7 · CVE-2026-128068
rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls Moderate 4.7 CWE-362 CWE-79 — Affected: before 1.7.2. Fixed in 1.7.2. Published 2026-11-13. GHSA-h7wh-q2qr-458c · CVE-2026-128069
Rails HTML Sanitizers: Possible XSS vulnerability with certain configurations Moderate CWE-79 — Affected: from 1.0.3 up to 1.7.1. Fixed in 1.7.1. Published 2026-07-21. GHSA-cj75-f6xr-r4g7 · CVE-2026-73648
rails-html-sanitizer has XSS vulnerability with certain configurations Low CWE-79 — Affected: from 1.6.0 up to 1.6.1. Fixed in 1.6.1. Published 2024-12-02. GHSA-2x5m-9ch4-qgrr · CVE-2024-53987
rails-html-sanitizer has XSS vulnerability with certain configurations Low CWE-79 — Affected: from 1.6.0 up to 1.6.1. Fixed in 1.6.1. Published 2024-12-02. GHSA-638j-pmjw-jq48 · CVE-2024-53986
rails-html-sanitizer has XSS vulnerability with certain configurations Low CWE-79 — Affected: from 1.6.0 up to 1.6.1. Fixed in 1.6.1. Published 2024-12-02. GHSA-cfjx-w229-hgx5 · CVE-2024-53988
rails-html-sanitizer has XSS vulnerability with certain configurations Low CWE-79 — Affected: from 1.6.0 up to 1.6.1. Fixed in 1.6.1. Published 2024-12-02. GHSA-rxv5-gxqc-xx8g · CVE-2024-53989
rails-html-sanitize has XSS vulnerability with certain configurations Low CWE-79 — Affected: from 1.6.0 up to 1.6.1. Fixed in 1.6.1. Published 2024-12-02. GHSA-w8gc-x259-rc7x · CVE-2024-53985
Inefficient Regular Expression Complexity in rails-html-sanitizer High 7.5 CWE-1333 — Affected: before 1.4.4. Fixed in 1.4.4. Published 2022-12-14. GHSA-5x79-w82f-gw8w · CVE-2022-23517
Possible XSS vulnerability with certain configurations of rails-html-sanitizer Moderate 6.1 CWE-79 — Affected: before 1.4.4. Fixed in 1.4.4. Published 2022-12-14. GHSA-9h9g-93gc-623h · CVE-2022-23519
Improper neutralization of data URIs may allow XSS in rails-html-sanitizer Moderate 6.1 CWE-79 — Affected: from 1.0.3 up to 1.4.4. Fixed in 1.4.4. Published 2022-12-14. GHSA-mcvf-2q2m-x72m · CVE-2022-23518
Possible XSS vulnerability with certain configurations of rails-html-sanitizer Moderate 6.1 CWE-79 — Affected: before 1.4.4. Fixed in 1.4.4. Published 2022-12-14. GHSA-rrfc-7g8p-99q8 · CVE-2022-23520
Rails::Html::Sanitizer vulnerable to Cross-site Scripting Moderate 6.1 CWE-79 — Affected: before 1.4.3. Fixed in 1.4.3. Published 2022-06-24. GHSA-pg8v-g4xq-hww9 · CVE-2022-32209
Moderate severity vulnerability that affects rails-html-sanitizer Moderate — Affected: before 1.0.3. Fixed in 1.0.3. Published 2018-09-17. GHSA-77pc-q5q7-qg9h
Moderate severity vulnerability that affects rails-html-sanitizer Moderate — Affected: from 1.0.2 up to 1.0.3. Fixed in 1.0.3. Published 2018-09-17. GHSA-mrhj-2g4v-39qx
Moderate severity vulnerability that affects rails-html-sanitizer Moderate — Affected: before 1.0.3. Fixed in 1.0.3. Published 2018-09-17. GHSA-qc8j-m8j3-rjq6
rails-html-sanitizer Cross-site Scripting vulnerability Moderate 6.1 CWE-79 — Affected: before 1.0.4. Fixed in 1.0.4. Published 2018-03-30. GHSA-px3r-jm9g-c8w8 · CVE-2018-3741
rails-html-sanitizer Cross-site Scripting vulnerability Moderate 6.1 CWE-79 — Affected: before 1.0.3. Fixed in 1.0.3. Published 2017-10-24. GHSA-59c7-4xj2-hgvw · CVE-2015-7578
rails-html-sanitizer Cross-site Scripting vulnerability Moderate 6.1 CWE-79 — Affected: before 1.0.3. Fixed in 1.0.3. Published 2017-10-24. GHSA-ghqm-pgxj-37gq · CVE-2015-7580
rails-html-sanitizer Cross-site Scripting vulnerability Moderate 6.1 CWE-79 — Affected: before 1.0.3. Fixed in 1.0.3. Published 2017-10-24. GHSA-r9c2-cr39-c8g6 · CVE-2015-7579

Find rails-html-sanitizer across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.