# loofah (RubyGems) vulnerabilities

9 known vulnerabilities (2 high, 2 medium, 2 low), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: not known (cve.now hasn't read this package's releases)
- Newest unaffected release: not known without release data
- Registry: https://rubygems.org/gems/loofah

## Advisories (9)

### [CVE-2026-73492](https://cve.now/CVE-2026-73492): Loofah \`allowed\_uri?\` does not detect \`javascript:\` URIs split by numeric character references without semicolons

- Severity: Low 2.3
- Published: Aug 12, 2026
- Affected: from 2.25.0, fixed in 2.25.2.

### [CVE-2026-73491](https://cve.now/CVE-2026-73491): Loofah \`allowed\_uri?\` does not detect \`javascript:\` URIs split by named whitespace character references

- Severity: Low 2.3
- Published: Aug 12, 2026
- Affected: from 2.25.0, fixed in 2.25.2.

### [CVE-2026-73490](https://cve.now/CVE-2026-73490): Loofah: SVG \`href\` attribute bypasses local-reference restriction

- Severity: Medium 4.7
- Published: Aug 12, 2026
- Affected: fixed in 2.25.2.

### [CVE-2022-23516](https://cve.now/CVE-2022-23516): Uncontrolled Recursion in Loofah

- Severity: High 7.5
- Published: Dec 14, 2022
- Affected: from 2.2.0, fixed in 2.19.1.

### [CVE-2022-23515](https://cve.now/CVE-2022-23515): Improper neutralization of data URIs may allow XSS in Loofah

- Severity: Medium 6.1
- Published: Dec 14, 2022
- Affected: from 2.1.0, fixed in 2.19.1.

### [CVE-2022-23514](https://cve.now/CVE-2022-23514): Inefficient Regular Expression Complexity in Loofah

- Severity: High 7.5
- Published: Dec 14, 2022
- Affected: fixed in 2.19.1.

### [CVE-2019-15587](https://cve.now/CVE-2019-15587): In the Loofah gem for Ruby through v2.3.0 unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.

- Severity: Unrated
- Published: Oct 22, 2019
- Affected: fixed in 2.3.1.

### [CVE-2018-16468](https://cve.now/CVE-2018-16468): In the Loofah gem for Ruby, through v2.2.2, unsanitized JavaScript may occur in sanitized output when a crafted SVG element is republished.

- Severity: Unrated
- Published: Oct 30, 2018
- Affected: fixed in 2.2.3.

### [CVE-2018-8048](https://cve.now/CVE-2018-8048): In the Loofah gem through 2.2.0 for Ruby, non-whitelisted HTML attributes may occur in sanitized output by republishing a crafted HTML…

- Severity: Unrated
- Published: Mar 27, 2018
- Affected: fixed in 2.2.1.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/rubygems/loofah
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
