CVE-2022-23515
Ruby vulnerability analysis and mitigation

Overview

Loofah, a general library for manipulating and transforming HTML/XML documents and fragments built on top of Nokogiri, was found to contain a cross-site scripting vulnerability (CVE-2022-23515). The vulnerability affects versions from 2.1.0 up to (excluding) 2.19.1, where the application is susceptible to cross-site scripting attacks via the image/svg+xml media type in data URIs. This security issue was patched in version 2.19.1 (GitHub Advisory).

Technical details

The vulnerability has been assigned a CVSS v3.1 base score of 6.1 (Medium) with the following vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The issue specifically involves improper neutralization of data URIs containing image/svg+xml media type content, which could lead to cross-site scripting attacks. The vulnerability is classified as CWE-79: Improper Neutralization of Input During Web Page Generation (GitHub Advisory).

Impact

The vulnerability allows attackers to potentially execute cross-site scripting (XSS) attacks through specially crafted SVG images embedded as data URIs. This could lead to unauthorized access to sensitive browser data and potential manipulation of web content (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to Loofah version 2.19.1 or later, which contains the fix for this vulnerability. The issue was responsibly reported by Maciej Piechota and has been patched in the latest release (GitHub Advisory, Debian LTS).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management