GitHub Advisoryadvisory · RubyGems

GHSA-228g-948r-83gx Improper neutralization of data URIs may allow XSS in Loofah

MEDIUM Published 2022-12-13 Modified 2025-11-04 Official page ↗
Aliases
CVE-2022-23515
Ecosystem
RubyGems
Packages
loofah
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weaknesses
CWE-79
Reviewed
2022-12-13

Affected packages

• RubyGems loofah: >= 2.1.0, < 2.19.1 → fixed in 2.19.1

Description

Summary Loofah `>= 2.1.0, = 2.19.1`. Severity The Loofah maintainers have evaluated this as Medium Severity 6.1. References • CWE - CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (4.9) • SVG MIME Type (image/svg+xml) is misleading to developers · Issue #266 · w3c/svgwg • https://hackerone.com/reports/1694173 • https://github.com/flavorjones/loofah/issues/101 Credit This vulnerability was responsibly reported by Maciej Piechota (@haqpl).

Related

Alias · CVE (1)

  • CVE-2022-23515 Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References