Technical impact
Loofah, a Ruby library used to manipulate HTML and XML, performed a one‑time parse of a style attribute before rebuilding CSS. The rebuild decoded escaped parentheses, property names, comments, or quotes, allowing an attacker to inject a CSS url() that becomes live on a second pass. When a privileged user renders the HTML, the browser will request the attacker‑chosen URL, leaking the viewer’s IP address, user agent, access timing, and access to internal hosts. No executable script can survive the sanitization, so the attacker can only observe information, not execute code. The flaw maps to CWE‑180 (Invalidated Data Not Correctly Sanitized) and CWE‑184 (Excessive Privilege Usage).
Affected Systems
The vulnerability affects the flavorjones:loofah Ruby gem, specifically any release prior to version 2.25.3. Systems that embed Loofah in web applications, content management systems, or email processing pipelines and that render user supplied or external HTML to browsers are at risk.
Risk and Exploitability
The CVSS score is 4.7, indicating low‑to‑moderate risk for confidentiality. The EPSS score is below 1 %, suggesting a very low probability of current exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers need to supply crafted HTML that is viewed by a user; the exploitation surface is therefore limited to environments where user‑rendered content is processed by Loofah. Given the limited impact and low exploitation likelihood, the overall risk is mild but non‑negligible.
Github GHSA