GitHub Advisoryadvisory · RubyGems
GHSA-228g-948r-83gx Improper neutralization of data URIs may allow XSS in Loofah
MEDIUM
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
- https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx web
- https://nvd.nist.gov/vuln/detail/CVE-2022-23515 advisory
- https://github.com/flavorjones/loofah/issues/101 web
- https://github.com/w3c/svgwg/issues/266 web
- https://github.com/flavorjones/loofah/commit/415677f3cf7f9254f42f811e784985cd63c7407f web
- https://hackerone.com/reports/1694173 web
- https://github.com/flavorjones/loofah package
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/CVE-2022-23515.yml web
- https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html web
- https://lists.debian.org/debian-lts-announce/2024/09/msg00044.html web