Is loofah 2.25 vulnerable?
RubyGems · 4 releases from 2.25.0 to 2.25.3 · latest loofah is 2.25.3 · checked 18 Nov 2026
No known advisories in the last release
loofah 2.25.3, the last 2.25 release, has no known advisories. 11 advisories affect earlier 2.25.x releases, so update to 2.25.3.
bundle update --conservative loofah # Gemfile: '>= 2.25.3'Is your project on an affected loofah?
Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Fixed within 2.25.x, affecting earlier releases
Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction
- Affected
- <2.25.3
- Fixed in
- 2.25.3
Loofah allowed_uri? treats javascript: alert(1) as safe
- Affected
- >=2.25.0 <2.25.3
- Fixed in
- 2.25.3
Loofah: CSS url() sanitization bypass via escaped parentheses
- Affected
- <2.25.3
- Fixed in
- 2.25.3
Loofah: Regular expression denial of service in the SVG local-reference check
- Affected
- <2.25.3
- Fixed in
- 2.25.3
Loofah allowed_uri? treats data:text/html as safe text/plain
- Affected
- >=2.25.2 <2.25.3
- Fixed in
- 2.25.3
Loofah: Mutation XSS in the HTML5 scrubbers through unescaped attribute values
- Affected
- >=2.21.0 <2.25.3
- Fixed in
- 2.25.3
Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons
- Affected
- >=2.25.0 <2.25.2
- Fixed in
- 2.25.2
Loofah: SVG `href` attribute bypasses local-reference restriction
- Affected
- <2.25.2
- Fixed in
- 2.25.2
Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references
- Affected
- >=2.25.0 <2.25.2
- Fixed in
- 2.25.2
Loofah has improper detection of disallowed URIs via `allowed_uri?`
- Affected
- >=2.25.0 <2.25.1
- Fixed in
- 2.25.1
Improper detection of disallowed URIs by Loofah `allowed_uri?`
- Affected
- >=2.25.0 <2.25.1
- Fixed in
- 2.25.1
Every loofah 2.25.x release
Affected: 2.25.0 to 2.25.2. 2.25.3 is not affected.
| Version | Known advisories |
|---|---|
| loofah 2.25.3 | None |
| loofah 2.25.2 | CVE-2026-126208, CVE-2026-126209, CVE-2026-126207, CVE-2026-126205, CVE-2026-126206, CVE-2026-126203 |
| loofah 2.25.1 | CVE-2026-126208, CVE-2026-126209, CVE-2026-126207, CVE-2026-126205, CVE-2026-126203, CVE-2026-73492, CVE-2026-73490, CVE-2026-73491 |
| loofah 2.25.0 | CVE-2026-126208, CVE-2026-126209, CVE-2026-126207, CVE-2026-126205, CVE-2026-126203, CVE-2026-73492, CVE-2026-73490, CVE-2026-73491, GHSA-2j22-pr5w-6gq8, GHSA-46fp-8f5p-pf2m |
Which of your client projects are still on loofah 2.25?
NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact loofah version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.
Other loofah versions
Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the RubyGems registry. Refreshed daily.