# CVE-2022-32209

- Priority: **Routine**
- Reason: Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-06-24 · Modified: 2025-11-03
- Aliases: SUSE-SU-2022:2870-1, SUSE-SU-2022:2885-1, UBUNTU-CVE-2022-32209, DEBIAN-CVE-2022-32209, DLA-3227-1, GHSA-pg8v-g4xq-hww9
- Record: https://cvemate.com/vulnerability/CVE-2022-32209 · JSON: https://cvemate.com/vulnerability/CVE-2022-32209/json

## Description

````text
# 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).
````

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 30.229%, percentile 98.264%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian ruby-rails-html-sanitizer (Debian): \< 1.0.4-1+deb10u1 \| \< 1.4.3-0.1
- ubuntu ruby-rails-html-sanitizer (Ubuntu): All versions (No fix recorded) \| \< 1.0.3-2ubuntu0.1~esm1 \| \< 1.0.4-1ubuntu0.1~esm1 \| \< 1.3.0-1ubuntu0.1~esm1 \| \< 1.4.2-2ubuntu0.1~esm1
- debian debian\_linux: 10.0
- fedoraproject fedora: 35 \| 36
- RubyGems rails-html-sanitizer (RubyGems): \< 1.4.3
- opensuse rubygem-rails-html-sanitizer&distro=openSUSE Leap 15.3 (openSUSE): \< 1.0.4-150000.4.3.1
- opensuse rubygem-rails-html-sanitizer&distro=openSUSE Leap 15.4 (openSUSE): \< 1.0.4-150000.4.3.1
- suse rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 (SUSE Linux Enterprise): \< 1.0.4-150000.4.3.1
- suse rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP1 (SUSE Linux Enterprise): \< 1.0.4-150000.4.3.1
- suse rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP2 (SUSE Linux Enterprise): \< 1.0.4-150000.4.3.1
- suse rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP3 (SUSE Linux Enterprise): \< 1.0.4-150000.4.3.1
- suse rubygem-rails-html-sanitizer&distro=SUSE Linux Enterprise High Availability Extension 15 SP4 (SUSE Linux Enterprise): \< 1.0.4-150000.4.3.1
- suse rubygem-rails-html-sanitizer&distro=SUSE OpenStack Cloud Crowbar 8 (SUSE Linux Enterprise): \< 1.0.3-8.11.1
- suse rubygem-rails-html-sanitizer&distro=SUSE OpenStack Cloud Crowbar 9 (SUSE Linux Enterprise): \< 1.0.3-8.11.1
- rubyonrails rails\_html\_sanitizers: \< 1.4.3

## References (first 20 of 23)

- <https://hackerone.com/reports/1530898>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AGRLWBEB3S5AU3D4TTROIS7O6QPHDTRH/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NHDACMCLWE32BZZTSNWQPIFUAD5I6Q47/>
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00012.html>
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00045.html>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20222870-1/>
- <https://bugzilla.suse.com/1201183>
- <https://www.suse.com/security/cve/CVE-2022-32209>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20222885-1/>
- <https://ubuntu.com/security/CVE-2022-32209>
- <https://discuss.rubyonrails.org/t/cve-2022-32209-possible-xss-vulnerability-in-rails-sanitizer/80800>
- <https://github.com/rails/rails-html-sanitizer/commit/45a5c10fed3d9aa141594c80afa06d748fa0967d>
- <https://www.cve.org/CVERecord?id=CVE-2022-32209>
- <https://security-tracker.debian.org/tracker/CVE-2022-32209>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-32209>
- <https://github.com/rails/rails-html-sanitizer>
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2022-32209.yml>
- <https://groups.google.com/g/rubyonrails-security/c/ce9PhUANQ6s>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AGRLWBEB3S5AU3D4TTROIS7O6QPHDTRH>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NHDACMCLWE32BZZTSNWQPIFUAD5I6Q47>

---

Data as of 2026-12-05T13:09:19.335Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
