Medium severity · published Dec 14, 2022
CVE-2022-23515
Improper neutralization of data URIs may allow XSS in Loofah
6.1
CVSS
0.9%
EPSS
No
On KEV
Description
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.1.0, < 2.19.1 is vulnerable to cross-site scripting via the image/svg+xml media type in data URIs. This issue is patched in version 2.19.1.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 58% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LO
loofah · flavorjones
>= 2.1.0, < 2.19.1 · source: vendor, NVD
DL
Debian Linux · Debian
10.0 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-23515
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-23515
Issue Tracking
https://github.com/flavorjones/loofah/issues/101
Third Party Advisory
https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx
Permissions Required
https://hackerone.com/reports/1694173
Mailing List
https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html
lists.debian.org
https://lists.debian.org/debian-lts-announce/2024/09/msg00044.html
More from loofah
7.5
CVE-2022-23516
Uncontrolled Recursion in Loofah
7.5
CVE-2022-23514
Inefficient Regular Expression Complexity in Loofah
4.7
CVE-2026-73490
Loofah: SVG `href` attribute bypasses local-reference restriction
2.3
CVE-2026-73492
Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons
2.3
CVE-2026-73491
Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references
