CVEMETERBack to radar
OFFICIAL RECORD · Ruby packages

CVE-2026-126208

PUBLISHEDOfficial status check: verifiedCVSS 3.1: 4.7 · medium

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

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Prior to 2.25.3, Loofah's SVG_ALLOW_LOCAL_HREF safelist lists textPath with lowercase spelling that does not match the HTML5 parser's element name and omits mpath, so external href and xlink:href values on those elements survive sanitization. Firefox fetches the attacker-chosen URL when a viewer renders the content, which can disclose the viewer's IP address, user agent, referrer, and access to hosts routable only from the viewer's network. Chrome and WebKit do not fetch these references, and the impact is a network request rather than script execution. The rails-html-sanitizer PermitScrubber reuses the affected safelist when SVG elements are permitted. This issue is fixed in version 2.25.3.

Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.

Severity and exploitation evidence

EPSS: 0.365% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.

CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T18:36:01.564Z. Public exploit availability is not used to set this status.

CVSS 3.1 · 4.7 · published by GitHub_M
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N
Assessment source · checked 2026-11-19T12:58:06.172Z

Verification by field

FieldStatusChecked at (UTC)Source
kevverified2026-11-19T18:36:01.564ZCISA KEV
cvssverified2026-11-19T12:58:06.172ZCVE Program
epssverified2026-11-19T18:27:16.248ZFIRST EPSS
patchesverified2026-11-19T12:52:45.823ZOSV
affectedverified2026-11-19T12:58:06.172ZCVE Program
lifecycleverified2026-11-19T12:58:06.172ZCVE Program

Affected versions and configuration

flavorjones loofah; default status: unknown: < 2.25.3 [affected; scheme: unspecified]

Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.

CVE Program · cve-json · full conditions
{
  "affected": [
    {
      "vendor": "flavorjones",
      "product": "loofah",
      "versions": [
        {
          "status": "affected",
          "version": "< 2.25.3"
        }
      ]
    }
  ],
  "additionalContainers": [
    {
      "title": "CISA ADP Vulnrichment",
      "metrics": [
        {
          "other": {
            "type": "ssvc",
            "content": {
              "id": "CVE-2026-126208",
              "role": "CISA Coordinator",
              "options": [
                {
                  "Exploitation": "none"
                },
                {
                  "Automatable": "no"
                },
                {
                  "Technical Impact": "partial"
                }
              ],
              "version": "2.0.3",
              "timestamp": "2026-11-13T00:32:10.843189Z"
            }
          }
        }
      ],
      "providerMetadata": {
        "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "shortName": "CISA-ADP",
        "dateUpdated": "2026-11-13T00:32:25.406Z"
      }
    }
  ]
}
Archived source JSON
OSV · osv · full conditions
{
  "id": "GHSA-345x-3rq2-jfrm",
  "aliases": [
    "CVE-2026-126208"
  ],
  "affected": [
    {
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.25.3"
            }
          ]
        }
      ],
      "package": {
        "name": "loofah",
        "purl": "pkg:gem/loofah",
        "ecosystem": "RubyGems"
      },
      "versions": [
        "0.2.0",
        "0.2.1",
        "0.2.2",
        "0.3.0",
        "0.3.1",
        "0.4.0",
        "0.4.1",
        "0.4.2",
        "0.4.3",
        "0.4.4",
        "0.4.5",
        "0.4.6",
        "0.4.7",
        "1.0.0",
        "1.0.0.beta.1",
        "1.1.0",
        "1.2.0",
        "1.2.1",
        "2.0.0",
        "2.0.1",
        "2.0.2",
        "2.0.3",
        "2.1.0",
        "2.1.0.rc1",
        "2.1.0.rc2",
        "2.1.1",
        "2.10.0",
        "2.11.0",
        "2.12.0",
        "2.13.0",
        "2.14.0",
        "2.15.0",
        "2.16.0",
        "2.17.0",
        "2.18.0",
        "2.19.0",
        "2.19.1",
        "2.2.0",
        "2.2.1",
        "2.2.2",
        "2.2.3",
        "2.20.0",
        "2.21.0",
        "2.21.0.rc1",
        "2.21.1",
        "2.21.2",
        "2.21.3",
        "2.21.4",
        "2.22.0",
        "2.23.0",
        "2.23.1",
        "2.24.0",
        "2.24.1",
        "2.25.0",
        "2.25.1",
        "2.25.2",
        "2.3.0",
        "2.3.1",
        "2.4.0",
        "2.5.0",
        "2.6.0",
        "2.7.0",
        "2.8.0",
        "2.9.0",
        "2.9.1"
      ],
      "database_specific": {
        "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-345x-3rq2-jfrm/GHSA-345x-3rq2-jfrm.json"
      }
    }
  ],
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N"
    }
  ],
  "upstream": [],
  "withdrawn": null,
  "references": [
    {
      "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-345x-3rq2-jfrm",
      "type": "WEB"
    },
    {
      "url": "https://github.com/flavorjones/loofah/pull/324",
      "type": "WEB"
    },
    {
      "url": "https://github.com/flavorjones/loofah/commit/cdd6ff7fb51998eb181bd2da925ddbcfcc8a3b96",
      "type": "WEB"
    },
    {
      "url": "https://github.com/flavorjones/loofah",
      "type": "PACKAGE"
    },
    {
      "url": "https://github.com/flavorjones/loofah/releases/tag/v2.25.3",
      "type": "WEB"
    },
    {
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/loofah/GHSA-345x-3rq2-jfrm.yml",
      "type": "WEB"
    }
  ],
  "relatedGitRanges": [],
  "database_specific": {
    "cwe_ids": [
      "CWE-178",
      "CWE-184"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "nvd_published_at": null,
    "github_reviewed_at": "2026-11-12T21:26:53Z"
  }
}
Archived source JSON

Correction evidence

Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.

Evidence typeDistribution / releasePackageChannelVersion or source noteSource
ecosystem-boundaryRubyGems / packageloofahNot a distribution channel2.25.3Official record

Vendor notices and operational guidance

No connected vendor notice is available for this record.

Original sources and dates

Official status history