RubyGems (Ruby)Worst: High17 advisories

loofah: known vulnerabilities

loofah has 17 reviewed security advisories in the GitHub Advisory Database — 2 high, 11 moderate, 4 low. The most recent was published 2026-11-12. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the loofah versions running across your servers, containers and images, and ranks what to patch first.

How to fix loofah

Upgrade loofah to a release at or above the fixed version shown for each advisory below. For RubyGems (Ruby):

bundle update loofah to 2.25.3 (or gem install loofah -v 2.25.3)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (17)

Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction Moderate 4.7 CWE-178 CWE-184 — Affected: before 2.25.3. Fixed in 2.25.3. Published 2026-11-12. GHSA-345x-3rq2-jfrm · CVE-2026-126208
Loofah: Mutation XSS in the HTML5 scrubbers through unescaped attribute values Moderate 6.1 CWE-116 CWE-79 — Affected: from 2.21.0 up to 2.25.3. Fixed in 2.25.3. Published 2026-11-12. GHSA-h6v6-rg66-fqj4 · CVE-2026-126203
Loofah allowed_uri? treats data:text&sol;html as safe text/plain Moderate CWE-184 CWE-79 — Affected: from 2.25.2 up to 2.25.3. Fixed in 2.25.3. Published 2026-11-12. GHSA-jcff-cj73-4w4f · CVE-2026-126206
Loofah: CSS url() sanitization bypass via escaped parentheses Moderate 4.7 CWE-180 CWE-184 — Affected: before 2.25.3. Fixed in 2.25.3. Published 2026-11-12. GHSA-m3x9-938q-5767 · CVE-2026-126207
Loofah: Regular expression denial of service in the SVG local-reference check Moderate 5.3 CWE-1333 CWE-400 — Affected: before 2.25.3. Fixed in 2.25.3. Published 2026-11-12. GHSA-mf2j-8f84-cc9q · CVE-2026-126205
Loofah allowed_uri? treats javascript&#x3a alert(1) as safe Moderate CWE-184 CWE-79 — Affected: from 2.25.0 up to 2.25.3. Fixed in 2.25.3. Published 2026-11-12. GHSA-p9wj-w8xq-vjx6 · CVE-2026-126209
Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons Low CWE-184 CWE-79 — Affected: from 2.25.0 up to 2.25.2. Fixed in 2.25.2. Published 2026-07-21. GHSA-5qhf-9phg-95m2 · CVE-2026-73492
Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references Low CWE-184 — Affected: from 2.25.0 up to 2.25.2. Fixed in 2.25.2. Published 2026-07-21. GHSA-8whx-365g-h9vv · CVE-2026-73491
Loofah: SVG `href` attribute bypasses local-reference restriction Moderate 4.7 CWE-79 — Affected: before 2.25.2. Fixed in 2.25.2. Published 2026-07-21. GHSA-9wjq-cp2p-hrgf · CVE-2026-73490
Loofah has improper detection of disallowed URIs via `allowed_uri?` Low CWE-116 CWE-79 — Affected: from 2.25.0 up to 2.25.1. Fixed in 2.25.1. Published 2026-03-26. GHSA-2j22-pr5w-6gq8
Improper detection of disallowed URIs by Loofah `allowed_uri?` Low CWE-79 — Affected: from 2.25.0 up to 2.25.1. Fixed in 2.25.1. Published 2026-03-18. GHSA-46fp-8f5p-pf2m
Improper neutralization of data URIs may allow XSS in Loofah Moderate 6.1 CWE-79 — Affected: from 2.1.0 up to 2.19.1. Fixed in 2.19.1. Published 2022-12-14. GHSA-228g-948r-83gx · CVE-2022-23515
Uncontrolled Recursion in Loofah High 7.5 CWE-674 — Affected: from 2.2.0 up to 2.19.1. Fixed in 2.19.1. Published 2022-12-14. GHSA-3x8r-x6xp-q4vm · CVE-2022-23516
Inefficient Regular Expression Complexity in Loofah High 7.5 CWE-1333 — Affected: before 2.19.1. Fixed in 2.19.1. Published 2022-12-14. GHSA-486f-hjj9-9vhh · CVE-2022-23514
Loofah Cross-site Scripting vulnerability Moderate 5.4 CWE-79 — Affected: before 2.2.3. Fixed in 2.2.3. Published 2018-11-01. GHSA-g4xq-jx4w-4cjv · CVE-2018-16468

Find loofah across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.