CVE-2022-23520Cross-site Scripting in Rails Rails-html-sanitizer

Severity
6.1MEDIUMNVD
EPSS
0.3%
top 43.67%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 14
Latest updateJan 4

Description

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

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitability: 2.8 | Impact: 2.7

Affected Packages4 packages

CVEListV5rails/rails-html-sanitizer< 1.4.4
RubyGemsrails/rails-html-sanitizer< 1.4.4
debiandebian/ruby-rails-html-sanitizer< ruby-rails-html-sanitizer 1.4.4-1 (bookworm)

Also affects: Debian Linux 10.0

🔴Vulnerability Details

3
OSV
CVE-2022-23520: rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications2022-12-14
OSV
Possible XSS vulnerability with certain configurations of rails-html-sanitizer2022-12-13
GHSA
Possible XSS vulnerability with certain configurations of rails-html-sanitizer2022-12-13

📋Vendor Advisories

2
Red Hat
rubygem-rails-html-sanitizer: Cross site scripting vulnerability with certain configurations2022-12-13
Debian
CVE-2022-23520: ruby-rails-html-sanitizer - rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails appli...2022

💬Community

1
HackerOne
CVE-2022-23520: Incomplete fix for CVE-2022-32209 (XSS in Rails::Html::Sanitizer under certain configurations)2023-01-04