Approved changes feed: RSS · Atom

cpe:2.3:a:rails:rails-html-sanitizer:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorRails (c2f75d8c-3de5-5ca8-bae8-6b2589edf586)
ProductRails Html Sanitizer (bdcb8f1d-9b42-5a66-9e9a-943a3ab2b26d)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from gcve-enriched-dumps CVE data

PURL mappings

PURLSourceLast updated
No PURL mappings for this CPE yet.

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2024-53989 vulnerable 2026-06-08 06:54:15.810254 Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0. A possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags for the the "noscript" element. This vulnerability is fixed in 1.6.1.
Published: 2024-12-02T21:07:04.296Z
Updated: 2024-12-03T14:35:25.922Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-53988 vulnerable 2026-06-08 06:54:15.809875 Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0. A possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags where the "math", "mtext", "table", and "style" elements are allowed and either either "mglyph" or "malignmark" are allowed. This vulnerability is fixed in 1.6.1.
Published: 2024-12-02T21:09:56.440Z
Updated: 2024-12-03T14:34:23.054Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-53987 vulnerable 2026-06-08 06:54:15.809298 Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0. A possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags where the "style" element is explicitly allowed and the "svg" or "math" element is not allowed. This vulnerability is fixed in 1.6.1.
Published: 2024-12-02T21:15:48.975Z
Updated: 2024-12-03T14:33:22.284Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-53986 vulnerable 2026-06-08 06:54:15.808896 Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0. A possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags where the "math" and "style" elements are both explicitly allowed. This vulnerability is fixed in 1.6.1.
Published: 2024-12-02T21:13:01.441Z
Updated: 2024-12-03T14:33:51.139Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-53985 vulnerable 2026-06-08 06:54:15.807232 Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. There is a possible XSS vulnerability with certain configurations of Rails::HTML::Sanitizer 1.6.0 when used with Rails >= 7.1.0 and Nokogiri < 1.15.7, or 1.16.x < 1.16.8. The XSS vulnerability with certain configurations of Rails::HTML::Sanitizer may allow an attacker to inject content if HTML5 sanitization is enabled and the application developer has overridden the sanitizer's allowed tags with both "math" and "style" elements or both both "svg" and "style" elements. This vulnerability is fixed in 1.6.1.
Published: 2024-12-02T21:15:57.620Z
Updated: 2024-12-11T16:47:59.133Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2022-23520 vulnerable 2026-06-08 05:40:57.683280 rails-html-sanitizer contains an incomplete fix for an XSS vulnerability
MEDIUM (6.1)
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, there is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer due to an incomplete fix of CVE-2022-32209. Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags to allow both "select" and "style" elements. Code is only impacted if allowed tags are being overridden. This issue is patched in version 1.4.4. All users overriding the allowed tags to include both "select" and "style" should either upgrade or use this workaround: Remove either "select" or "style" from the overridden allowed tags. NOTE: Code is _not_ impacted if allowed tags are overridden using either the :tags option to the Action View helper method sanitize or the :tags option to the instance method SafeListSanitizer#sanitize.
Published: 2022-12-14T17:07:31.954Z
Updated: 2025-11-03T21:46:02.126Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2022-23519 vulnerable 2026-06-08 05:40:57.682898 Possible XSS vulnerability with certain configurations of rails-html-sanitizer
HIGH (7.2)
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer may allow an attacker to inject content if the application developer has overridden the sanitizer's allowed tags in either of the following ways: allow both "math" and "style" elements, or allow both "svg" and "style" elements. Code is only impacted if allowed tags are being overridden. . This issue is fixed in version 1.4.4. All users overriding the allowed tags to include "math" or "svg" and "style" should either upgrade or use the following workaround immediately: Remove "style" from the overridden allowed tags, or remove "math" and "svg" from the overridden allowed tags.
Published: 2022-12-14T16:50:14.949Z
Updated: 2025-11-03T21:46:00.596Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2022-23518 vulnerable 2026-06-08 05:40:57.682398 Improper neutralization of data URIs allows XSS in rails-html-sanitizer
MEDIUM (6.1)
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.
Published: 2022-12-14T16:22:34.460Z
Updated: 2025-11-03T21:45:59.030Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2022-23517 vulnerable 2026-06-08 05:40:57.681322 Inefficient Regular Expression Complexity in rails-html-sanitizer
HIGH (7.5)
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Certain configurations of rails-html-sanitizer < 1.4.4 use an inefficient regular expression that is susceptible to excessive backtracking when attempting to sanitize certain SVG attributes. This may lead to a denial of service through CPU resource consumption. This issue has been patched in version 1.4.4.
Published: 2022-12-14T16:10:22.304Z
Updated: 2025-11-03T21:45:57.498Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2018-3741 vulnerable 2026-06-08 05:11:41.208173 Details available
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.
Published: 2018-03-30T19:00:00.000Z
Updated: 2024-08-05T04:50:30.644Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.