CVE-2022-23515

Improper neutralization of data URIs may allow XSS in Loofah

Published Dec 14, 2022 CVSS 3.1 · 6.1 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3565-1 ruby-loofah security update
Debian DLA Debian DLA DLA-3901-1 ruby-loofah security update
EUVD EUVD EUVD-2022-7470 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.
Github GHSA Github GHSA GHSA-228g-948r-83gx Improper neutralization of data URIs may allow XSS in Loofah
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00217}

epss

{'score': 0.00236}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2025, 9:45 PM
Reserved
Jan 19, 2022, 9:23 PM
Status
Modified
Published
Dec 14, 2022, 2:15 PM
Modified
Jun 17, 2026, 4:30 AM
Severity
Moderate
Public date
Dec 13, 2022, 12:00 AM