CVE-2022-23520: rails-html-sanitizer contains an incomplete fix for an XSS vulnerability
rails · rails-html-sanitizer
Affected: rails-html-sanitizer · Exploitation: possible (1 to 10%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 68% of scored CVEs
DescriptionCVE.org
rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Prior to version 1.4.4, there is a possible XSS vulnerability with certain configurations of Rails::Html::Sanitizer due to an incomplete fix of CVE-2022-32209. 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 issue is patched in version 1.4.4. All users overriding the allowed tags to include both "select" and "style" should either upgrade or use this workaround: Remove either "select" or "style" from the overridden allowed tags. NOTE: Code is _not_ impacted if allowed tags are overridden using either the :tags option to the Action View helper method sanitize or the :tags option to the instance method SafeListSanitizer#sanitize.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- rails · rails-html-sanitizer< 1.4.4
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Possible (1 to 10%). EPSS between 1% and 10%.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Weakness
- Cross-site Scripting
- Vendor
- rails
- Published
- December 2022
- Bounty reports
- 2 disclosed on HackerOne
Disclosed bug bounty reports about CVE-2022-23520
The reports on HackerOne that name this CVE, with HackerOne's own outcome. Titles and metadata only.
- CVE-2022-23520: Incomplete fix for CVE-2022-32209 (XSS in Rails::Html::Sanitizer under certain configurations)Internet Bug Bounty · 2023 · medium severityValid
- Incomplete fix for CVE-2022-32209 (XSS in Rails::Html::Sanitizer under certain configurations)Ruby on Rails · 2022 · medium severityValid
CoverageNo articles yet
No CyberSIXT article names CVE-2022-23520 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-79cwe.mitre.org
- github.com/rails/rails-html-sanitizer/security/advisories/GHSA-rgithub.com
- hackerone.com/reports/1654310hackerone.com
- lists.debian.org/debian-lts-announce/2023/09/msg00012.htmllists.debian.org
- lists.debian.org/debian-lts-announce/2024/09/msg00045.htmllists.debian.org