CVE-2022-32209: debian debian_linux Cross-site Scripting
Vulnerability summary
CVE-2022-32209 is a medium (CVSS 6.1) Cross-site Scripting vulnerability in debian debian_linux. EPSS estimates a 30.23% chance of exploitation in the next 30 days, higher than 98.2% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 7 · Related 5Timeline
- 24-06-2022PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
# 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).
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · RubygemsEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
30.23%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
0.00 pp
From 30.23% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (hackerone.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Suse7 products
- rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15< 1.0.4-150000.4.3.1
- rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP1< 1.0.4-150000.4.3.1
- rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP2< 1.0.4-150000.4.3.1
- rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP3< 1.0.4-150000.4.3.1
- rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP4< 1.0.4-150000.4.3.1
Debian2 products
- ruby-rails-html-sanitizer< 1.0.4-1+deb10u1 | < 1.4.3-0.1
- debian_linuxEOL10.0
Opensuse2 products
- rubygem-rails-html-sanitizer&distro=openSUSE Leap 15.3< 1.0.4-150000.4.3.1
- rubygem-rails-html-sanitizer&distro=openSUSE Leap 15.4< 1.0.4-150000.4.3.1
Fedoraproject1 product
- fedoraEOL35 | 36
RubyGems1 product
- rails-html-sanitizer< 1.4.3
Rubyonrails1 product
- rails_html_sanitizers< 1.4.3
Ubuntu1 product
- ruby-rails-html-sanitizerAll versions (No fix recorded)
7 vendors · 15 products