
CVE catalog
CVE-2022-32209
ruby-rails-html-sanitizer affected and fixed versions
# 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).
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 30.23% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | ruby-rails-html-sanitizer | 1.4.3-0.1 | FixedDistribution-reported fixed boundary | [CVE-2022-32209] |
| Debiantrixie | ruby-rails-html-sanitizer | 1.6.2-1 | Fixed | [CVE-2022-32209] |
| Debiansid | ruby-rails-html-sanitizer | 1.4.3-0.1 | FixedDistribution-reported fixed boundary | [CVE-2022-32209] |
| Debiansid | ruby-rails-html-sanitizer | 1.7.1-1 | Fixed | [CVE-2022-32209] |
| Debianforky | ruby-rails-html-sanitizer | 1.4.3-0.1 | FixedDistribution-reported fixed boundary | [CVE-2022-32209] |
| Debianforky | ruby-rails-html-sanitizer | 1.7.1-1 | Fixed | [CVE-2022-32209] |
| Debianbookworm | ruby-rails-html-sanitizer | 1.4.3-0.1 | FixedDistribution-reported fixed boundary | [CVE-2022-32209] |
| Debianbookworm | ruby-rails-html-sanitizer | 1.4.4-1 | Fixed | [CVE-2022-32209] |
Showing 8 fix observations. All 27 observations, including unknown and conflicting reports, are available below.
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | ruby-rails-html-sanitizer | 1.4.3-0.1 | FixedDistribution-reported fixed boundary | [CVE-2022-32209] |
| Debianbookworm | ruby-rails-html-sanitizer | 1.4.4-1 | Fixed | [CVE-2022-32209] |
| Debianforky | ruby-rails-html-sanitizer | 1.4.3-0.1 | FixedDistribution-reported fixed boundary | [CVE-2022-32209] |
| Debianforky | ruby-rails-html-sanitizer | 1.7.1-1 | Fixed | [CVE-2022-32209] |
| Debiansid | ruby-rails-html-sanitizer | 1.4.3-0.1 | FixedDistribution-reported fixed boundary | [CVE-2022-32209] |
| Debiansid | ruby-rails-html-sanitizer | 1.7.1-1 | Fixed | [CVE-2022-32209] |
| Debiantrixie | ruby-rails-html-sanitizer | 1.4.3-0.1 | FixedDistribution-reported fixed boundary | [CVE-2022-32209] |
| Debiantrixie | ruby-rails-html-sanitizer | 1.6.2-1 | Fixed | [CVE-2022-32209] |
| Opensuseleap 15.3 | rubygem-rails-html-sanitizer | 1.0.4-150000.4.3.1 | UnknownSource applicability is not established | [SUSE-SU-2022:2870-1] |
| Opensuseleap 15.4 | rubygem-rails-html-sanitizer | 1.0.4-150000.4.3.1 | UnknownSource applicability is not established | [SUSE-SU-2022:2870-1] |
| Suselinux enterprise high availability extension 15 | rubygem-rails-html-sanitizer | 1.0.4-150000.4.3.1 | UnknownSource applicability is not established | [SUSE-SU-2022:2870-1] |
| Suselinux enterprise high availability extension 15 sp1 | rubygem-rails-html-sanitizer | 1.0.4-150000.4.3.1 | UnknownSource applicability is not established | [SUSE-SU-2022:2870-1] |
| Suselinux enterprise high availability extension 15 sp2 | rubygem-rails-html-sanitizer | 1.0.4-150000.4.3.1 | UnknownSource applicability is not established | [SUSE-SU-2022:2870-1] |
| Suselinux enterprise high availability extension 15 sp3 | rubygem-rails-html-sanitizer | 1.0.4-150000.4.3.1 | UnknownSource applicability is not established | [SUSE-SU-2022:2870-1] |
| Suselinux enterprise high availability extension 15 sp4 | rubygem-rails-html-sanitizer | 1.0.4-150000.4.3.1 | UnknownSource applicability is not established | [SUSE-SU-2022:2870-1] |
| Suseopenstack cloud crowbar 8 | rubygem-rails-html-sanitizer | 1.0.3-8.11.1 | UnknownSource applicability is not established | [SUSE-SU-2022:2885-1] |
| Suseopenstack cloud crowbar 9 | rubygem-rails-html-sanitizer | 1.0.3-8.11.1 | UnknownSource applicability is not established | [SUSE-SU-2022:2885-1] |
| Ubuntu16.04 | ruby-rails-html-sanitizer | 1.0.2-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
| Ubuntu16.04 | ruby-rails-html-sanitizer | 1.0.3-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
| Ubuntu16.04 | ruby-rails-html-sanitizer | 1.0.3-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
| Ubuntu18.04 | ruby-rails-html-sanitizer | 1.0.3-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
| Ubuntu18.04 | ruby-rails-html-sanitizer | 1.0.4-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
| Ubuntu20.04 | ruby-rails-html-sanitizer | 1.0.4-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
| Ubuntu20.04 | ruby-rails-html-sanitizer | 1.3.0-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
| Ubuntu22.04 | ruby-rails-html-sanitizer | 1.3.0-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
| Ubuntu22.04 | ruby-rails-html-sanitizer | 1.4.2-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
| Ubuntu22.04 | ruby-rails-html-sanitizer | 1.4.2-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2022-32209] |
Original provider fields
{
"package_releases": [
{
"name": "ruby-rails-html-sanitizer",
"status": "fixed",
"release": "sid",
"version": "1.7.1-1"
},
{
"name": "ruby-rails-html-sanitizer",
"status": "fixed",
"release": "forky",
"version": "1.7.1-1"
},
{
"name": "ruby-rails-html-sanitizer",
"status": "fixed",
"release": "trixie",
"version": "1.6.2-1"
},
{
"name": "ruby-rails-html-sanitizer",
"status": "fixed",
"release": "bookworm",
"version": "1.4.4-1"
}
],
"fixed_versions": [
{
"bug": 1013806,
"name": "ruby-rails-html-sanitizer",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "1.4.3-0.1"
},
{
"bug": 1013806,
"name": "ruby-rails-html-sanitizer",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "1.4.3-0.1"
},
{
"bug": 1013806,
"name": "ruby-rails-html-sanitizer",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": "1.4.3-0.1"
},
{
"bug": 1013806,
"name": "ruby-rails-html-sanitizer",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": "1.4.3-0.1"
}
],
"distribution_packages": [
{
"name": "rubygem-rails-html-sanitizer",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.4-150000.4.3.1"
}
]
}
],
"release": "linux enterprise high availability extension 15",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:2870-1",
"fixed_version": "1.0.4-150000.4.3.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2022:2870-1",
"provider_updated_at": "2026-02-04T04:33:36.296516Z",
"applicability_unknown": true
},
{
"name": "rubygem-rails-html-sanitizer",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.4-150000.4.3.1"
}
]
}
],
"release": "linux enterprise high availability extension 15 sp1",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:2870-1",
"fixed_version": "1.0.4-150000.4.3.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2022:2870-1",
"provider_updated_at": "2026-02-04T04:33:36.296516Z",
"applicability_unknown": true
},
{
"name": "rubygem-rails-html-sanitizer",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.4-150000.4.3.1"
}
]
}
],
"release": "linux enterprise high availability extension 15 sp2",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:2870-1",
"fixed_version": "1.0.4-150000.4.3.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2022:2870-1",
"provider_updated_at": "2026-02-04T04:33:36.296516Z",
"applicability_unknown": true
},
{
"name": "rubygem-rails-html-sanitizer",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.4-150000.4.3.1"
}
]
}
],
"release": "linux enterprise high availability extension 15 sp3",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:2870-1",
"fixed_version": "1.0.4-150000.4.3.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2022:2870-1",
"provider_updated_at": "2026-02-04T04:33:36.296516Z",
"applicability_unknown": true
},
{
"name": "rubygem-rails-html-sanitizer",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.4-150000.4.3.1"
}
]
}
],
"release": "linux enterprise high availability extension 15 sp4",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:2870-1",
"fixed_version": "1.0.4-150000.4.3.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2022:2870-1",
"provider_updated_at": "2026-02-04T04:33:36.296516Z",
"applicability_unknown": true
},
{
"name": "rubygem-rails-html-sanitizer",
"distro": "opensuse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.4-150000.4.3.1"
}
]
}
],
"release": "leap 15.3",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:2870-1",
"fixed_version": "1.0.4-150000.4.3.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2022:2870-1",
"provider_updated_at": "2026-02-04T04:33:36.296516Z",
"applicability_unknown": true
},
{
"name": "rubygem-rails-html-sanitizer",
"distro": "opensuse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.4-150000.4.3.1"
}
]
}
],
"release": "leap 15.4",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:2870-1",
"fixed_version": "1.0.4-150000.4.3.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2022:2870-1",
"provider_updated_at": "2026-02-04T04:33:36.296516Z",
"applicability_unknown": true
},
{
"name": "rubygem-rails-html-sanitizer",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.3-8.11.1"
}
]
}
],
"release": "openstack cloud crowbar 8",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:2885-1",
"fixed_version": "1.0.3-8.11.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2022:2885-1",
"provider_updated_at": "2026-02-04T02:27:19.533058Z",
"applicability_unknown": true
},
{
"name": "rubygem-rails-html-sanitizer",
"distro": "suse",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.3-8.11.1"
}
]
}
],
"release": "openstack cloud crowbar 9",
"versions": [],
"ecosystem": "rpm",
"provider_url": "https://osv.dev/vulnerability/SUSE-SU-2022:2885-1",
"fixed_version": "1.0.3-8.11.1",
"provider_source": "pypi",
"provider_record_id": "SUSE-SU-2022:2885-1",
"provider_updated_at": "2026-02-04T02:27:19.533058Z",
"applicability_unknown": true
},
{
"name": "ruby-rails-html-sanitizer",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "16.04",
"versions": [
"1.0.2-1",
"1.0.3-1",
"1.0.3-2"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-32209",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2022-32209",
"provider_updated_at": "2025-10-24T04:53:42Z",
"applicability_unknown": true
},
{
"name": "ruby-rails-html-sanitizer",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "18.04",
"versions": [
"1.0.3-2",
"1.0.4-1"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-32209",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2022-32209",
"provider_updated_at": "2025-10-24T04:53:42Z",
"applicability_unknown": true
},
{
"name": "ruby-rails-html-sanitizer",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "20.04",
"versions": [
"1.0.4-1",
"1.3.0-1"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-32209",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2022-32209",
"provider_updated_at": "2025-10-24T04:53:42Z",
"applicability_unknown": true
},
{
"name": "ruby-rails-html-sanitizer",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "22.04",
"versions": [
"1.3.0-2",
"1.4.2-1",
"1.4.2-2"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-32209",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2022-32209",
"provider_updated_at": "2025-10-24T04:53:42Z",
"applicability_unknown": true
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [ruby-rails-html-sanitizer]Unknown
Details (2)
1.4.4-1· all · bookwormFixed · Fixed:
1.4.3-0.1dsa · ruby-rails-html-sanitizer · debian · bookworm
1.4.4-1· all · bookwormFixed · Fixed:
1.4.3-0.1dsa · ruby-rails-html-sanitizer · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10361-1.json]
- [https://osv.dev/vulnerability/DLA-3227-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:2870-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:2885-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-32209]
- [https://security-tracker.debian.org/tracker/CVE-2022-32209]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-32209.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-0262.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]