VendorsRuby on Railsrails_html_sanitizersall versions
Vulnerabilities

Ruby on Rails Rubyonrails Rails HTML Sanitizers

Ranked by severity, then by exploit likelihood. Click a CVE ID for its full record.

10CVEs
CVE-2022-23517
Inefficient Regular Expression Complexity in rails-html-sanitizer
Published 2022-12-14 · Modified
7.5EPSS 0.015
CVE-2022-23519
Possible XSS vulnerability with certain configurations of rails-html-sanitizer
Published 2022-12-14 · Modified
7.2EPSS 0.010
CVE-2022-32209
# Possible XSS Vulnerability in Rails::Html::SanitizerThere is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer.This vulnerability has been assigned the CVE identifier CVE-2022-32209.Versions Affected: ALLNot affected: NONEFixed Versions: v1.4.3## ImpactA 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 to allow both `select` and `style` elements.Code is only impacted if allowed tags are being overridden. This may be done via application configuration:```ruby# In config/application.rbconfig.action_view.sanitized_allowed_tags = ["select", "style"]```see https://guides.rubyonrails.org/configuring.html#configuring-action-viewOr it may be done with a `:tags` option to the Action View helper `sanitize`:```<%= sanitize @comment.body, tags: ["select", "style"] %>```see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitizeOr it may be done with Rails::Html::SafeListSanitizer directly:```ruby# class-level optionRails::Html::SafeListSanitizer.allowed_tags = ["select", "style"]```or```ruby# instance-level optionRails::Html::SafeListSanitizer.new.sanitize(@article.body, tags: ["select", "style"])```All users overriding the allowed tags by any of the above mechanisms to include both "select" and "style" should either upgrade or use one of the workarounds immediately.## ReleasesThe FIXED releases are available at the normal locations.## WorkaroundsRemove either `select` or `style` from the overridden allowed tags.## CreditsThis vulnerability was responsibly reported by [windshock](https://hackerone.com/windshock?type=user).
Published 2022-06-24 · Modified
6.1EPSS 0.302
CVE-2022-23520
rails-html-sanitizer contains an incomplete fix for an XSS vulnerability
Published 2022-12-14 · Modified
6.1EPSS 0.011
CVE-2022-23518
Improper neutralization of data URIs allows XSS in rails-html-sanitizer
Published 2022-12-14 · Modified
6.1EPSS 0.009
CVE-2024-53985
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Published 2024-12-02 · Analyzed
6.1EPSS 0.006
CVE-2024-53986
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Published 2024-12-02 · Analyzed
6.1EPSS 0.005
CVE-2024-53989
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Published 2024-12-02 · Analyzed
6.1EPSS 0.005
CVE-2024-53988
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Published 2024-12-02 · Analyzed
6.1EPSS 0.004
CVE-2024-53987
Possible XSS vulnerability with certain configurations of rails-html-sanitizer 1.6.0
Published 2024-12-02 · Analyzed
6.1EPSS 0.004