{
  "cveId": "CVE-2022-32209",
  "url": "https://patchblox.com/security/cve/CVE-2022-32209",
  "summary": "CVE-2022-32209 is fixed in 2 products on 1 platform, first by DEBIAN-CVE-2022-32209, released June 24, 2022. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "ruby-rails-html-sanitizer: # Possible XSS Vulnerability in Rails::Html::SanitizerThere is a possible XSS vulnerability with certain configuratio...",
  "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\u0027s allowed tags to allow both \u0060select\u0060 and \u0060style\u0060 elements.Code is only impacted if allowed tags are being overridden. This may be done via application configuration:\u0060\u0060\u0060ruby# In config/application.rbconfig.action_view.sanitized_allowed_tags = [\u0022select\u0022, \u0022style\u0022]\u0060\u0060\u0060see https://guides.rubyonrails.org/configuring.html#configuring-action-viewOr it may be done with a \u0060:tags\u0060 option to the Action View helper \u0060sanitize\u0060:\u0060\u0060\u0060\u003C%= sanitize @comment.body, tags: [\u0022select\u0022, \u0022style\u0022] %\u003E\u0060\u0060\u0060see https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitizeOr it may be done with Rails::Html::SafeListSanitizer directly:\u0060\u0060\u0060ruby# class-level optionRails::Html::SafeListSanitizer.allowed_tags = [\u0022select\u0022, \u0022style\u0022]\u0060\u0060\u0060or\u0060\u0060\u0060ruby# instance-level optionRails::Html::SafeListSanitizer.new.sanitize(@article.body, tags: [\u0022select\u0022, \u0022style\u0022])\u0060\u0060\u0060All users overriding the allowed tags by any of the above mechanisms to include both \u0022select\u0022 and \u0022style\u0022 should either upgrade or use one of the workarounds immediately.## ReleasesThe FIXED releases are available at the normal locations.## WorkaroundsRemove either \u0060select\u0060 or \u0060style\u0060 from the overridden allowed tags.## CreditsThis vulnerability was responsibly reported by [windshock](https://hackerone.com/windshock?type=user).",
  "published": "2022-06-24T15:15:11Z",
  "severity": "medium",
  "cvss": 6.1,
  "cvssVector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
  "epss": 0.26501,
  "epssPercentile": 0.98024,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "libdb",
      "release": "rocky 8",
      "fixedVersion": "0:5.3.28-42.el8_4",
      "fix": "RLSA-2022:8506",
      "url": "https://patchblox.com/security/fix/linux/rlsa-2022-8506",
      "released": "2022-11-16T13:21:30Z"
    },
    {
      "platform": "linux",
      "product": "ruby-rails-html-sanitizer",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "1.4.3-0.1",
      "fix": "DEBIAN-CVE-2022-32209",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-32209",
      "released": "2022-06-24T15:15:11Z"
    },
    {
      "platform": "linux",
      "product": "ruby-rails-html-sanitizer",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "1.4.3-0.1",
      "fix": "DEBIAN-CVE-2022-32209",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-32209",
      "released": "2022-06-24T15:15:11Z"
    },
    {
      "platform": "linux",
      "product": "ruby-rails-html-sanitizer",
      "release": "Debian 14",
      "fixedVersion": "1.4.3-0.1",
      "fix": "DEBIAN-CVE-2022-32209",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-32209",
      "released": "2022-06-24T15:15:11Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}