---
id: CVE-2026-73491
title: >-
  Loofah is a general library for manipulating and transforming HTML/XML
  documents and fragments, built on top of Nokogiri
summary: >-
  Loofah is a general library for manipulating and transforming HTML/XML
  documents and fragments, built on top of Nokogiri. From 2.25.0 until 2.25.2,
  Loofah::HTML5::Scrub.allowed_uri? does not reject javascript: URIs whose
  scheme is split …
severity: low
cvss: 2.3
cvssVector: 'CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N'
cwe:
  - CWE-184
vendor: flavorjones
product: loofah
affected:
  - 'loofah >= 2.25.0, < 2.25.2'
published: '2026-08-12'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:58:37.713'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-73491'
references:
  - url: >-
      https://github.com/flavorjones/loofah/commit/5e91af861e3cdab47b91dd0b81f3afdfd13a5e19
    label: security-advisories@github.com
  - url: 'https://github.com/flavorjones/loofah/pull/308'
    label: security-advisories@github.com
  - url: 'https://github.com/flavorjones/loofah/releases/tag/v2.25.2'
    label: security-advisories@github.com
  - url: >-
      https://github.com/flavorjones/loofah/security/advisories/GHSA-8whx-365g-h9vv
    label: security-advisories@github.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-08-13T13:49:09.263231Z'
cvssSource: cna
ingestedAt: '2026-09-13T09:27:34.986Z'
epss: 0.00394
epssPercentile: 0.31013
---

## Overview

Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. From 2.25.0 until 2.25.2, Loofah::HTML5::Scrub.allowed_uri? does not reject javascript: URIs whose scheme is split or prefixed with the HTML5 named whitespace character references &Tab; or &NewLine;. CGI.unescapeHTML leaves those references intact, so allowed_uri? reports the URL safe even though a browser decodes and strips the tab or line feed and executes the resulting javascript: URL. This issue affects only callers that pass HTML-encoded strings directly to allowed_uri?; Loofah's default sanitize() path is not affected. This issue is fixed in version 2.25.2.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
