Vulnerability · Published Aug 12, 2026 · Assigned by GitHub_M

CVE-2026-73491Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references

Low 2.3

In plain English

A low-severity security flaw in loofah from flavorjones. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)2.3Low
Exploit odds (30 days)0.4%top 66.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 	 or 
. 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ruby-loofahno fix listedDEBIAN-CVE-2026-73491
Debian:13ruby-loofahno fix listedDEBIAN-CVE-2026-73491
Debian:14ruby-loofah2.25.2-1DEBIAN-CVE-2026-73491
RubyGemsloofah2.25.2GHSA-8whx-365g-h9vv
Ubuntu:22.04:LTSruby-loofahno fix listedUBUNTU-CVE-2026-73491
Ubuntu:24.04:LTSruby-loofahno fix listedUBUNTU-CVE-2026-73491
Ubuntu:26.04:LTSruby-loofahno fix listedUBUNTU-CVE-2026-73491
Ubuntu:26.10ruby-loofahno fix listedUBUNTU-CVE-2026-73491

Affected products (as reported)

VendorProductVersions
flavorjones loofah >= 2.25.0, < 2.25.2

Weakness: CWE-184 · Vector: 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

References