p PatchFirst

PatchFirst · Aktuelle Sicherheitslücken

Sicherheitslücken in ruby-rails-html-sanitizer

In den letzten 30 Tagen veröffentlichte Sicherheitslücken für ruby-rails-html-sanitizer: 2. Davon im KEV-Katalog: 0.

Sicherheitslücken filtern
Filter zurücksetzen

Sicherheitslücken: 12

  1. CVE-2026-128069

    Mittel · CVSS 4.7EPSS 0,22%Keine Korrektur veröffentlicht

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

    rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Before 1.7.2, the HTML4 and HTML5 variants of Rails::HTML::SafeListSanitizer reuse one Rails::HTML::PermitScrubber across calls and mutate its tags and attributes without synchronization. In a multithreaded process, concurrent sanitize calls using different tags: or attributes: options can interleave and cause one call to use the other call's allowlist. If a permissive call admits a script element or event-handler attribute, output expected to be sanitized under a stricter policy can retain it and cause cross-site scripting when rendered. Applications tha

    Veröffentlicht Aktualisiert
  2. CVE-2026-128068

    Mittel · CVSS 5.3EPSS 0,45%Keine Korrektur veröffentlicht

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

    rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 through 1.7.1, Rails::HTML::PermitScrubber checks SVG href and xlink:href local references with a pattern whose line-start anchor and whitespace class cause an all-whitespace value to be rescanned from each line start. An attacker who supplies HTML can cause quadratic CPU consumption when an application customizes its allowed tags to include an SVG reference element such as use and permits href or xlink:href. The default allowed tag configuration is not affected. CRuby 3.2 and later uses linear-time regular expression matching for this pattern,

    Veröffentlicht Aktualisiert
  3. CVE-2026-73648

    Mittel · CVSS 5.1EPSS 0,55%Keine Korrektur veröffentlicht

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

    rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 until 1.7.1, Rails::HTML::PermitScrubber restricted SVG reference elements in SVG_ALLOW_LOCAL_HREF only when they used xlink:href, even though browsers also accept the plain href attribute. Applications with non-default allowed tags that included SVG use or feImage elements could therefore permit external references; a same-origin external SVG referenced by use could execute scripts in the sanitized document's context, while feImage could load external images for tracking. Applications using the default allowed tags are not affected. This issue

    Veröffentlicht Aktualisiert
  4. CVE-2022-23520

    Mittel · CVSS 6.1EPSS 1,21%Korrektur verfügbar

    rails-html-sanitizer contains an incomplete fix for an XSS vulnerability

    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:

    • Auf 1.4.4-1 aktualisieren
    Veröffentlicht Aktualisiert
  5. CVE-2022-23519

    Hoch · CVSS 7.2EPSS 1,08%Korrektur verfügbar

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

    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 worka

    • Auf 1.4.4-1 aktualisieren
    Veröffentlicht Aktualisiert
  6. CVE-2022-23518

    Mittel · CVSS 6.1EPSS 0,94%Korrektur verfügbar

    Improper neutralization of data URIs allows XSS in rails-html-sanitizer

    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.

    • Auf 1.4.4-1 aktualisieren
    Veröffentlicht Aktualisiert
  7. CVE-2022-23517

    Hoch · CVSS 7.5EPSS 1,59%Korrektur verfügbar

    Inefficient Regular Expression Complexity in rails-html-sanitizer

    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.

    • Auf 1.4.4-1 aktualisieren
    Veröffentlicht Aktualisiert
  8. CVE-2022-32209

    Mittel · CVSS 6.1EPSS 30,23%Korrektur verfügbar

    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 con

    • Auf 1.4.3-0.1 aktualisieren
    Veröffentlicht Aktualisiert
  9. CVE-2018-3741

    Mittel · CVSS 6.1EPSS 1,25%Korrektur verfügbar

    CVE-2018-3741

    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.

    • Auf 1.0.4-1 aktualisieren
    Veröffentlicht Aktualisiert
  10. CVE-2015-7579

    Mittel · CVSS 6.1EPSS 2,58%Korrektur verfügbar

    CVE-2015-7579

    Cross-site scripting (XSS) vulnerability in the rails-html-sanitizer gem 1.0.2 for Ruby on Rails 4.2.x and 5.x allows remote attackers to inject arbitrary web script or HTML via an HTML entity that is mishandled by the Rails::Html::FullSanitizer class.

    • Auf 1.0.3-1 aktualisieren
    Veröffentlicht Aktualisiert

Prüfen Sie Ihren Server

Gleichen Sie Ihren installierten Stack und seine Versionen mit den aktuellen Sicherheitsmeldungen ab.

Prüfen Sie Ihren Server →