Improper neutralization of data URIs may allow XSS in Loofah
Priority LOW 29CWE-79Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 1 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-79.
Summary
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.
Why it matters now
EPSS 0.00859 58th percentileScored 2026-11-07
Fix Partial loofah (flavorjones): 2.19.1loofah (RubyGems): 2.19.1Red Hat: 1 advisoryRed Hat: 1 fixed, 2 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| flavorjones | loofah | 2.1.0 to before 2.19.1 | 2.19.1 | Patch available | CNA |
| — | loofah (RubyGems) | 2.1.0 to before 2.19.1 | 2.19.1 | Patch available | GHSA-228g-948r-83gx |
- loofah Vendorflavorjones Affected 2.1.0 to before 2.19.1 Fixed in 2.19.1 Patch available CNA
- loofah (RubyGems) Vendor— Affected 2.1.0 to before 2.19.1 Fixed in 2.19.1 Patch available GHSA-228g-948r-83gx
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:* | 2.1.0 to before 2.19.1 | Vulnerable | flavorjones |
| cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | 10.0 | Vulnerable | Debian |
- cpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:* Versions 2.1.0 to before 2.19.1 Vulnerable ·flavorjones
- cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian
Remediation
- Fix · CNA loofah (flavorjones) Fixed in 2.19.1
- Fix · GHSA-228g-948r-83gx loofah (RubyGems) Fixed in 2.19.1 Advisory →
Red Hat 1 advisory
- RHSA-2023:2097 Released 2023-05-03 · Red Hat rating ImportantSatellite 6.13 Release
- Red Hat Satellite 6.13 for RHEL 8 ansible-collection-redhat-satellite-3.9.0-2.el8sat, ansible-collection-redhat-satellite_operations-1.3.0-2.el8sat, ansible-lint-5.0.8-4.el8pc +47
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix planned: Will not fix |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Satellite 6.13 for RHEL 8 | Fixed | RHSA-2023:2097 |
Not affected: 1 product
- Red Hat Satellite 6.13 for RHEL 8
Timeline
- 2026-10-02 Threatist record created from CVE-2022-23515
- 2026-10-03 Alias added: GHSA-228g-948r-83gx
References
Advisory 5
Other 5
- https://github.com/w3c/svgwg/issues/266
- https://github.com/flavorjones/loofah/commit/415677f3cf7f9254f42f811e784985cd63c7407f
- https://github.com/flavorjones/loofah
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2022-23515.yml
- https://lists.debian.org/debian-lts-announce/2024/09/msg00044.html
More flavorjones Loofah vulnerabilities
- TI-2022-07573 Inefficient Regular Expression Complexity in Loofah CVSS 3.1HIGH 7.5
- TI-2022-07575 Uncontrolled Recursion in Loofah CVSS 3.1HIGH 7.5
- TI-2018-05825 In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in… CVSS 3.0MEDIUM 6.1
- TI-2022-07577 Improper neutralization of data URIs allows XSS in rails-html-sanitizer CVSS 3.1MEDIUM 6.1
- TI-2019-11687 Cross-site scripting in Loofah CVSS 3.1MEDIUM 5.4
- TI-2018-11810 Cross-site scripting in Loofah CVSS 3.0MEDIUM 5.4
Sources
- CVE-2022-23515 · CVE Program
- CVE-2022-23515 · NVD
- FIRST EPSS
- GHSA-228g-948r-83gx · GitHub Advisory Database · CC BY 4.0
- CVE-2022-23515 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences