rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used in combination with Loofah >= 2.1.0. This issue is patched in version 1.4.4.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23518.json",
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-79"
]
}{
"extracted_events": [
{
"introduced": "1.0.3"
},
{
"fixed": "1.4.4"
},
{
"introduced": "1.0.3"
},
{
"fixed": "1.4.4"
}
],
"cpe": "cpe:2.3:a:rubyonrails:rails_html_sanitizers:*:*:*:*:*:rails:*:*",
"source": [
"AFFECTED_FIELD",
"CPE_RANGE"
]
}