XSS in Loofah Project
CVE-2022-23518
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.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS: 0.009 (57.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 58th percentile — 57.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.009 · newest: 0.009 · change: +0.000
Affected products
- Loofah Project
- Rails Rails-Html-Sanitizer — versions >= 1.0.3, < 1.4.4
- Rubyonrails Rails HTML Sanitizers
- Debian Linux — versions 10.0
Weakness classification (CWE)
References
- github.com/rails/rails-html-sanitizer/security/advisories/GHSA-mcvf-2q2m-x72m (Third Party Advisory)
- github.com/rails/rails-html-sanitizer/issues/135 (Exploit, Third Party Advisory, Issue Tracking)
- hackerone.com/reports/1694173 (Permissions Required, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2023/09/msg00012.html (Mailing List, Third Party Advisory)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2022-23518?
- CVE-2022-23518 is a medium-severity vulnerability in Loofah Project, classified under Cross-site Scripting. CVSS score: 6.1/10. Published 2022-12-14.
- How severe is CVE-2022-23518?
- Medium severity. CVSS v3 base score is 6.1 out of 10.