{"schema_version":"1.9.0","id":"CVE-2022-23518","published":"2022-12-14T16:22:34.460Z","modified":"2026-08-12T03:51:39.398496525Z","aliases":["GHSA-mcvf-2q2m-x72m"],"related":["SUSE-SU-2023:3534-1","SUSE-SU-2023:3714-1","openSUSE-SU-2024:12769-1","openSUSE-SU-2024:14175-1","openSUSE-SU-2025:15125-1","openSUSE-SU-2026:10361-1"],"summary":"Improper neutralization of data URIs allows XSS in rails-html-sanitizer","details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rails/rails-html-sanitizer","events":[{"introduced":"5c4354db7524b1df891df0a3e29877ce9f7575ca"},{"fixed":"fd63deaeb22e601237d4d4d12014e7ebd410ea9b"}],"database_specific":{"cpe":"cpe:2.3:a:rubyonrails:rails_html_sanitizers:*:*:*:*:*:rails:*:*","extracted_events":[{"introduced":"1.0.3"},{"fixed":"1.4.4"}],"source":["AFFECTED_FIELD","CPE_RANGE"]}}],"versions":["v1.4.3","v1.4.2","v1.4.1","v1.4.0","v1.3.0","v1.2.0","v1.1.0","v1.0.4","v1.0.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23518.json"}}],"references":[{"type":"WEB","url":"https://hackerone.com/reports/1694173"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/09/msg00012.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23518.json"},{"type":"ADVISORY","url":"https://github.com/rails/rails-html-sanitizer/security/advisories/GHSA-mcvf-2q2m-x72m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23518"},{"type":"REPORT","url":"https://github.com/rails/rails-html-sanitizer/issues/135"}],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-79"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23518.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"}]}