Loofah is a focused HTML sanitization library widely embedded in Ruby web applications and frameworks, where its role in scrubbing user-supplied markup creates a narrow but high-impact attack surface. The recurring vulnerability profile centers on the library's parser and sanitization logic, with durable exposure through cross-site scripting weaknesses, inefficient regular expression handling, and uncontrolled recursion in input processing. Live severity, exploitation, and exposure counts are shown alongside this summary.
The number and severity of CVEs published that impact products developed by Loofah Project over time
Signals from CVEs in this vendor scope (7 CVEs).
7 CVEs · Highest risk first
| CVE | Published | CVSS | Risk | KEV | Exploit |
|---|---|---|---|---|---|
CVE-2022-23514HIGH Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah < 2.19.1 contains an inefficient regular expression | Dec 14, 2022 | 7.5 | 26 | NO | NO |
CVE-2022-23516HIGH Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah >= 2.2.0, < 2.19.1 uses recursion for sanitizing CD | Dec 14, 2022 | 7.5 | 25 | NO | NO |
CVE-2022-23518MEDIUM rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. Versions >= 1.0.3, < 1.4.4 are vulnerable to cross-site scripting via data URIs when used i | Dec 14, 2022 | 6.1 | 22 | NO | NO |
CVE-2022-23515MEDIUM 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 scri | Dec 14, 2022 | 6.1 | 22 | NO | NO |
CVE-2018-8048MEDIUM In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in sanitized output by republishing a crafted HTML fragment. | Mar 27, 2018 | 6.1 | 22 | NO | NO |
CVE-2019-15587MEDIUM In the Loofah gem for Ruby through v2.3.0 unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished. | Oct 22, 2019 | 5.4 | 21 | NO | NO |
CVE-2018-16468MEDIUM In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished. | Oct 30, 2018 | 5.4 | 21 | NO | NO |
Signals from CVEs in this vendor scope (7 CVEs).
An overview of all social media posts that mention a CVE ID that affects a product developed by Loofah Project.
Media articles that mention a CVE ID that affects a product developed by Loofah Project — matched by CVE ID, not by vendor name.