CVE-2022-23515 MEDIUM

CVE-2022-23515: Improper neutralization of data URIs may allow XSS in Loofah

Vendor Flavorjones
Product loofah
Weakness CWE-79 · XSS
Published December 14, 2022
Last update November 3, 2025

CVSS base score

6.1/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

December 14, 2022 CVE published
November 3, 2025 Record updated