Moderate severityNVD Advisory· Published Dec 14, 2022· Updated Nov 3, 2025
Improper neutralization of data URIs may allow XSS in Loofah
CVE-2022-23515
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
loofahRubyGems | >= 2.1.0, < 2.19.1 | 2.19.1 |
Affected products
8- ghsa-coords7 versionspkg:gem/loofahpkg:rpm/opensuse/rubygem-loofah&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/rubygem-loofah&distro=openSUSE%20Tumbleweedpkg:rpm/suse/rubygem-loofah&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP1pkg:rpm/suse/rubygem-loofah&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP2pkg:rpm/suse/rubygem-loofah&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP3pkg:rpm/suse/rubygem-loofah&distro=SUSE%20Linux%20Enterprise%20High%20Availability%20Extension%2015%20SP4
>= 2.1.0, < 2.19.1+ 6 more
- (no CPE)range: >= 2.1.0, < 2.19.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- (no CPE)range: < 2.19.1-1.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- (no CPE)range: < 2.2.2-150000.4.9.1
- Range: >= 2.1.0, < 2.19.1
Patches
Vulnerability mechanics
References
10- github.com/advisories/GHSA-228g-948r-83gxghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-23515ghsaADVISORY
- github.com/flavorjones/loofah/commit/415677f3cf7f9254f42f811e784985cd63c7407fghsaWEB
- github.com/flavorjones/loofah/issues/101ghsax_refsource_MISCWEB
- github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gxghsax_refsource_CONFIRMWEB
- github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2022-23515.ymlghsaWEB
- github.com/w3c/svgwg/issues/266ghsaWEB
- hackerone.com/reports/1694173ghsax_refsource_MISCWEB
- lists.debian.org/debian-lts-announce/2023/09/msg00011.htmlghsaWEB
- lists.debian.org/debian-lts-announce/2024/09/msg00044.htmlghsaWEB
News mentions
0No linked articles in our index yet.