loofah Known Vulnerabilities & Fixes
loofah has 7 known security vulnerabilities in RubyGems (Ruby). Upgrade to version 2.25.2 or later to resolve all known issues. Data sourced from OSV, enriched with EPSS exploit probability and CISA KEV.
Low Immediate Risk
No actively exploited vulnerabilities detected. Monitor and update in your next maintenance window.
Recommended safe version: 2.25.2
Upgrading to 2.25.2 or later resolves all 7 known vulnerabilities in loofah. Run: gem install loofah -v 2.25.2
Is loofah in your project?
Check if you're affected and upgrade to 2.25.2 to stay secure.
Security Summary
- 7 affected version ranges have been identified across these 7 advisories.
- 100% of known issues have a published fixed version.
- Remediation: gem update loofah
Vulnerabilities
7 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Dec 13, 2022, most recently Jul 21, 2026 (1316 days apart).
| CVE / GHSA | Severity | Affected | Fixed In |
|---|---|---|---|
| CVE-2022-23516 Uncontrolled Recursion in Loofah | HIGH | 2.10.0, 2.11.0, 2.12.0, 2.13.0 (+19 more) | 2.19.1 |
| CVE-2022-23514 Inefficient Regular Expression Complexity in Loofah | HIGH | 0.2.0, 0.2.1, 0.2.2, 0.3.0 (+45 more) | 2.19.1 |
| CVE-2022-23515 Improper neutralization of data URIs may allow XSS in Loofah | MEDIUM | 2.1.0, 2.1.1, 2.10.0, 2.11.0 (+21 more) | 2.19.1 |
| CVE-2026-73490 Loofah: SVG `href` attribute bypasses local-reference restriction | MEDIUM | 0.2.0, 0.2.1, 0.2.2, 0.3.0 (+60 more) | 2.25.2 |
| GHSA-46fp-8f5p-pf2m Improper detection of disallowed URIs by Loofah `allowed_uri?` | LOW | 2.25.0 | 2.25.1 |
| CVE-2026-73492 Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons | LOW | 2.25.0, 2.25.1 | 2.25.2 |
| CVE-2026-73491 Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references | LOW | 2.25.0, 2.25.1 | 2.25.2 |
About This Data
Vulnerability data for loofah is sourced from the Open Source Vulnerability (OSV) database, aggregating reports from GitHub Advisory Database, NIST NVD, and ecosystem-specific sources.
CVSS (Common Vulnerability Scoring System) scores reflect exploitability and impact. EPSS (Exploit Prediction Scoring System) scores indicate the probability of exploitation within the next 30 days. Vulnerabilities marked with are listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
Related RubyGems (Ruby) Packages
Other packages in this ecosystem, ranked by shared vulnerabilities where available.
Check Your Dependencies
Scan your project to check if you're using a vulnerable version of loofah.