7 known security vulnerabilities
- highGHSA-3x8r-x6xp-q4vm(CVE-2022-23516)
Uncontrolled Recursion in Loofah
Show 6 more vulnerabilitiesShow fewer vulnerabilities1 high5 moderate
- highGHSA-486f-hjj9-9vhh(CVE-2022-23514)
Inefficient Regular Expression Complexity in Loofah
- moderateGHSA-228g-948r-83gx(CVE-2022-23515)
Improper neutralization of data URIs may allow XSS in Loofah
- moderateGHSA-345x-3rq2-jfrm(CVE-2026-126208)
Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction
- moderateGHSA-9wjq-cp2p-hrgf(CVE-2026-73490)
Loofah: SVG `href` attribute bypasses local-reference restriction
- moderateGHSA-m3x9-938q-5767(CVE-2026-126207)
Loofah: CSS url() sanitization bypass via escaped parentheses
- moderateGHSA-mf2j-8f84-cc9q(CVE-2026-126205)
Loofah: Regular expression denial of service in the SVG local-reference check
Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah excels at HTML sanitization (XSS prevention). It includes some nice HTML sanitizers, which are based on HTML5lib's safelist, so it most likely won't make your codes less secure. (These statements have not been evaluated by Netexperts.) ActiveRecord extensions for sanitization are available in the [`loofah-activerecord` gem](https://github.com/flavorjones/loofah-activerecord).
Required Ruby Version
>= 0
Authors
Mike Dalessio, Bryan Helmkamp
Versions
-
2.25.3
-
source
- 2.25.3 source November 02, 2026 (38 KB)
-
-
2.25.2
-
source
- 2.25.2 source July 15, 2026 (36 KB) vulnerable
-
-
2.25.1
-
source
- 2.25.1 source March 17, 2026 (34 KB) vulnerable
-
-
2.25.0
-
source
- 2.25.0 source December 15, 2025 (34 KB) vulnerable
-
-
2.24.1
-
source
- 2.24.1 source May 12, 2025 (33.5 KB) vulnerable
-
-
2.3.1
-
source
- 2.3.1 source October 22, 2019 (66.5 KB) vulnerable
-