Skip to main content
RubyGems (Ruby)

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.

11 Vulnerabilities

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.

11
Total
0
Critical
2
High
6
Medium
3
Low

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 / GHSASeverity
CVE-2022-23514
Inefficient Regular Expression Complexity in Loofah
Affected
0.2.0, 0.2.1, 0.2.2, 0.3.0 (+45 more)
Fixed in
2.19.1
HIGH
CVE-2022-23516
Uncontrolled Recursion in Loofah
Affected
2.10.0, 2.11.0, 2.12.0, 2.13.0 (+19 more)
Fixed in
2.19.1
HIGH
CVE-2022-23515
Improper neutralization of data URIs may allow XSS in Loofah
Affected
2.1.0, 2.1.1, 2.10.0, 2.11.0 (+21 more)
Fixed in
2.19.1
MEDIUM
CVE-2026-126209
Loofah allowed_uri? treats javascript&#x3a alert(1) as safe
Affected
2.25.0, 2.25.1, 2.25.2
Fixed in
2.25.3
MEDIUM
CVE-2026-126206
Loofah allowed_uri? treats data:text/html as safe text/plain
Affected
2.25.2
Fixed in
2.25.3
MEDIUM
CVE-2026-126205
Loofah: Regular expression denial of service in the SVG local-reference check
Affected
0.2.0, 0.2.1, 0.2.2, 0.3.0 (+61 more)
Fixed in
2.25.3
MEDIUM
CVE-2026-73492
Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons
Affected
2.25.0, 2.25.1
Fixed in
2.25.2
LOW
CVE-2026-73491
Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references
Affected
2.25.0, 2.25.1
Fixed in
2.25.2
LOW
CVE-2026-126203
Loofah: Mutation XSS in the HTML5 scrubbers through unescaped attribute values
Affected
2.21.0, 2.21.1, 2.21.2, 2.21.3 (+9 more)
Fixed in
2.25.3
MEDIUM
CVE-2026-73490
Loofah: SVG `href` attribute bypasses local-reference restriction
Affected
0.2.0, 0.2.1, 0.2.2, 0.3.0 (+60 more)
Fixed in
2.25.2
MEDIUM
GHSA-46fp-8f5p-pf2m
Improper detection of disallowed URIs by Loofah `allowed_uri?`
Affected
2.25.0
Fixed in
2.25.1
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.

Data from OSV DatabaseUpdated daily200K+ vulnerabilities indexed