{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-32209","published":"2022-06-24T15:15:11.153000Z","last_modified":"2026-06-17T04:46:52.383000Z","status":"Modified","cvss":{"version":"3.1","score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:rubyonrails:rails_html_sanitizers:*:*:*:*:*:rails:*:*","part":"a","vendor":"rubyonrails","product":"rails_html_sanitizers","version_end_excluding":"1.4.3"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"35"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"36"},{"criteria":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"10.0"}],"cpes_truncated":false,"vendors":["rubyonrails","fedoraproject","debian"],"products":["rubyonrails/rails_html_sanitizers","fedoraproject/fedora","debian/debian_linux"],"epss":{"score":0.01751,"percentile":0.78356,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-pg8v-g4xq-hww9","ecosystem":"RubyGems","name":"rails-html-sanitizer","purl":"pkg:gem/rails-html-sanitizer","ranges":[{"introduced":"0","fixed":"1.4.3"}],"versions":["1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","1.2.0","1.3.0","1.4.0","1.4.1","1.4.2"],"versions_truncated":false}],"severity":"medium","priority_score":52,"links":{"html_es":"/es/cve/CVE-2022-32209/","html_en":"/en/cve/CVE-2022-32209/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-32209","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-32209"},"untrusted":{"vendor_name":"Rubyonrails","product_name":"Rails Html Sanitizers","desc_en":"# 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).","affected":[],"references":[{"url":"https://hackerone.com/reports/1530898","tags":["Exploit","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00012.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AGRLWBEB3S5AU3D4TTROIS7O6QPHDTRH/","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NHDACMCLWE32BZZTSNWQPIFUAD5I6Q47/","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00045.html","tags":[]}]},"bulletins":[{"source":"suse","id":"openSUSE-SU-2026:10361-1","url":"https://www.suse.com/support/update/","published":"2026-03-13T00:00:00+00:00","severity":"high","exploited":false,"untrusted":{"title":"ruby4.0-rubygem-rails-html-sanitizer-1.6.0-1.9 on GA media"}}]}