CVE-2022-32209
No exploitation reported by the sources we read.
- Published2022-06-24
- WeaknessCWE-79
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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).
Timeline
dates in UTC- 2022-06-2415:15CVE publishedNVD
- 2026-12-0204:55EPSS crossed 10 %FIRST EPSS
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 35.x | = 35 | no fix published | NVD |
| 36.x | = 36 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 10.0 | = 10.0 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.4 | < 1.4.3 | 1.4.3 | NVD · OSV |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- candlepinRed Hat:satellite:6.12::el8all versions · fixed in 0:4.1.15-1.el8satand 1 other package
- foremanRed Hat:satellite:6.12::el8all versions · fixed in 0:3.3.0.17-1.el8satand 13 other packages
- foremanRed Hat:satellite_utils:6.12::el8all versions · fixed in 0:3.3.0.17-1.el8satand 1 other package
- foremanRed Hat:satellite_capsule:6.12::el8all versions · fixed in 0:3.3.0.17-1.el8satand 1 other package
- libdbRocky Linux:8all versions · fixed in 0:5.3.28-42.el8_4
- python-djangoRed Hat:satellite:6.12::el8all versions · fixed in 0:3.2.14-2.el8pcand 1 other package
- python-djangoRed Hat:satellite_capsule:6.12::el8all versions · fixed in 0:3.2.14-2.el8pcand 1 other package
- ruby-rails-html-sanitizerUbuntu:Pro:22.04:LTSall versions · fixed in 1.4.2-2ubuntu0.1~esm1
28 more package ranges on OSV.dev
Vendor advisories
rubygem-rails-html-sanitizer: possible xss with certain configurations
Red Hat Security Advisory: Satellite 6.12 Release
Fix
- Vendor fix Red Hat Product Security RHSA-2022:8506 · 2 productsFor Red Hat Satellite 6.12, see the following documentation for the release. https://access.redhat.com/documentation/en-us/red_hat_satellite/6.12 The important instructions on how to upgrade are available below. https://access.redhat.com/documentation/en-us/red_hat_satellite/6.12/html/upgrading_an…
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-04
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.16.1read 2026-10-23
- NVDCVSS 2.04.3read 2026-10-23
- CNAweakness (CWE)CWE-79known since 2026-10-23
- NVDweakness (CWE)CWE-79read 2026-10-23
- FIRST EPSSEPSS score30.2 %read 2026-12-04
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2022-07-05
Identifiers
- EUVD-2022-6111same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-pg8v-g4xq-hww9same flawGitHub Advisory Database · CC-BY-4.0
- DLA-3227-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-3902-1advisory covering several CVEsDebian · LicenseRef-unstated
- openSUSE-SU-2024:12145-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:13137-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:14175-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2025:15125-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2026:10361-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:8506advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:8506advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:2870-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:2885-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-9438-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Published
- 2022-06-24
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-pg8v-g4xq-hww9
Frequently asked questions
What is CVE-2022-32209?
Is CVE-2022-32209 actively exploited?
What is the CVSS score for CVE-2022-32209?
Running rubygem-rails-html-sanitizer? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-pg8v-g4xq-hww9
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0