loofah Known Vulnerabilities & Fixes
loofah has 11 known security vulnerabilities in RubyGems (Ruby). Upgrade to version 2.25.3 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.3
Upgrading to 2.25.3 or later resolves all 11 known vulnerabilities in loofah. Run: gem install loofah -v 2.25.3
Is loofah in your project?
Check if you're affected and upgrade to 2.25.3 to stay secure.
Security Summary
- 11 affected version ranges have been identified across these 11 advisories.
- 100% of known issues have a published fixed version.
- Highest exploit-probability (EPSS) score for loofah: 1.9%.
- Remediation: gem update loofah
Vulnerabilities
11 unique vulnerabilities — sorted by exploitation risk (KEV → EPSS → CVSS). Click a CVE/GHSA ID for full details. First disclosed Dec 13, 2022, most recently Nov 12, 2026 (1430 days apart).
| CVE / GHSA | Severity |
|---|---|
| CVE-2022-23514 Inefficient Regular Expression Complexity in Loofah
| HIGH |
| CVE-2022-23516 Uncontrolled Recursion in Loofah
| HIGH |
| CVE-2022-23515 Improper neutralization of data URIs may allow XSS in Loofah
| MEDIUM |
| CVE-2026-126209 Loofah allowed_uri? treats javascript: alert(1) as safe
| MEDIUM |
| CVE-2026-126206 Loofah allowed_uri? treats data:text/html as safe text/plain
| MEDIUM |
| CVE-2026-126205 Loofah: Regular expression denial of service in the SVG local-reference check
| MEDIUM |
| CVE-2026-73492 Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons
| LOW |
| CVE-2026-73491 Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references
| LOW |
| CVE-2026-126203 Loofah: Mutation XSS in the HTML5 scrubbers through unescaped attribute values
| MEDIUM |
| CVE-2026-73490 Loofah: SVG `href` attribute bypasses local-reference restriction
| MEDIUM |
| GHSA-46fp-8f5p-pf2m Improper detection of disallowed URIs by Loofah `allowed_uri?`
| LOW |
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.