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
Affected product
LO
loofah
flavorjones
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