Is loofah 0.3 vulnerable?

RubyGems · 2 releases from 0.3.0 to 0.3.1 · latest loofah is 2.25.3 · checked 18 Nov 2026

Yes: 8 known advisories

Yes. loofah 0.3.1, the last 0.3 release, is affected by 8 known security advisories (1 high, 7 medium), including CVE-2022-23514, CVE-2026-126208, CVE-2026-126207. Upgrade to 2.25.3 or later to fix all of them.

Upgrade with:bundle update --conservative loofah # Gemfile: '>= 2.25.3'

Is your project on an affected loofah?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Rails or Ruby apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting loofah 0.3.1

  • MediumCVE-2026-126208GHSA-345x-3rq2-jfrm12 Nov 2026

    Loofah: SVG `<textPath>` and `<mpath>` bypass local-reference restriction

    Affected
    <2.25.3
    Fixed in
    2.25.3
  • MediumCVE-2026-126207GHSA-m3x9-938q-576712 Nov 2026

    Loofah: CSS url() sanitization bypass via escaped parentheses

    Affected
    <2.25.3
    Fixed in
    2.25.3
  • MediumCVE-2026-126205GHSA-mf2j-8f84-cc9q12 Nov 2026

    Loofah: Regular expression denial of service in the SVG local-reference check

    Affected
    <2.25.3
    Fixed in
    2.25.3
  • MediumCVE-2026-73490GHSA-9wjq-cp2p-hrgf21 Jul 2026

    Loofah: SVG `href` attribute bypasses local-reference restriction

    Affected
    <2.25.2
    Fixed in
    2.25.2
  • HighCVE-2022-23514GHSA-486f-hjj9-9vhh13 Dec 2022

    Inefficient Regular Expression Complexity in Loofah

    Affected
    <2.19.1
    Fixed in
    2.19.1
  • MediumCVE-2019-15587GHSA-c3gv-9cxf-6f575 Nov 2019

    Loofah Allows Cross-site Scripting

    Affected
    <2.3.1
    Fixed in
    2.3.1
  • MediumCVE-2018-16468GHSA-g4xq-jx4w-4cjv1 Nov 2018

    Loofah Cross-site Scripting vulnerability

    Affected
    <2.2.3
    Fixed in
    2.2.3
  • MediumCVE-2018-8048GHSA-x7rv-cr6v-4vm421 Mar 2018

    Cross-site Scripting in loofah

    Affected
    <2.2.1
    Fixed in
    2.2.1

Every loofah 0.3.x release

Affected: 0.3.0 to 0.3.1. Latest loofah: 2.25.3.

VersionKnown advisories
loofah 0.3.1CVE-2026-126208, CVE-2026-126207, CVE-2026-126205, CVE-2026-73490, CVE-2022-23514, CVE-2019-15587, CVE-2018-16468, CVE-2018-8048
loofah 0.3.0CVE-2026-126208, CVE-2026-126207, CVE-2026-126205, CVE-2026-73490, CVE-2022-23514, CVE-2019-15587, CVE-2018-16468, CVE-2018-8048

Which of your client projects are still on loofah 0.3?

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.