CVE-2022-23515: Improper neutralization of data URIs may allow XSS in Loofah
Vulnerability summary
CVE-2022-23515 is a medium (CVSS 6.1) vulnerability in debian debian_linux. EPSS estimates a 0.86% chance of exploitation in the next 30 days, higher than 58.5% of scored vulnerabilities.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 8 · Related 5Timeline
- 14-12-2022PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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 metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · RubygemsEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.86%
Chance of exploitation in the next 30 days
Percentile
59%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 0.83% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- ruby-loofah< 2.19.1-1
- debian_linuxEOL10.0
Flavorjones1 product
- loofah≥ 2.1.0, < 2.19.1
Loofah_project1 product
- loofah≥ 2.1.0, < 2.19.1
RubyGems1 product
- loofah≥ 2.1.0, < 2.19.1
Ubuntu1 product
- ruby-loofahAll versions (No fix recorded)
5 vendors · 6 products
References
13 links- github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gxX Refsource CONFIRMREPORTWEBThird Party Advisory