Skip to content

CVE-2026-73492 Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons

LowCVSS 2.3 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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: or vbscript: URIs whose scheme is split by semicolon-less numeric character references such as &#58, &#9, &#10, or &#13. CGI.unescapeHTML leaves these references encoded, so allowed_uri? reports the URL safe even though a browser decodes an encoded colon or strips encoded whitespace and executes the resulting URI scheme. 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.

Upgrade path

10 packages: 2 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/ruby-loofah(Debian 12) = 2.19.1-1; = 2.20.0-1; = 2.21.3-1; = 2.21.4-1 +8 more No fix listed No fix yet
debian/ruby-loofah(Debian 13) = 2.24.0-1; = 2.24.1-1; = 2.25.0-1; = 2.25.1-1 +3 more No fix listed No fix yet
redhat/rubygem-loofah(Red Hat satellite 6) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/ruby-loofah(Ubuntu 26.10) All versions No fix listed No fix yet
debian/ruby-loofah(Debian 14) < 2.25.2-1; = 2.24.0-1; = 2.24.1-1; = 2.25.0-1 +2 more 2.25.2-1 Fixed
rubygems loofah(RubyGems) = 2.25.0; = 2.25.1; >= 2.25.0, < 2.25.2 2.25.2 Fixed
flavorjones loofah = >= 2.25.0, < 2.25.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems loofah(RubyGems) >= 2.25.0, < 2.25.2 2.25.2
rubygems loofah(RubyGems) = 2.25.0 No fix listed
rubygems loofah(RubyGems) = 2.25.1 No fix listed
flavorjones loofah = >= 2.25.0, < 2.25.2 No fix listed
redhat/3scale-amp2/system-rhel8(Red Hat:3scale:2.13) All versions No fix listed
redhat/3scale-amp2/zync-rhel9(Red Hat:3scale:2.13) All versions No fix listed
redhat/rubygem-loofah(Red Hat:satellite:6) All versions No fix listed
debian/ruby-loofah(Debian:12) All versions No fix listed
debian/ruby-loofah(Debian:12) = 2.19.1-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.20.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.21.3-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.21.4-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.22.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.24.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.24.1-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.0-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.1-1 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.1-2 No fix listed
debian/ruby-loofah(Debian:12) = 2.25.2-1 No fix listed
debian/ruby-loofah(Debian:13) All versions No fix listed
debian/ruby-loofah(Debian:13) = 2.24.0-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.24.1-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.0-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.1-1 No fix listed
debian/ruby-loofah(Debian:13) = 2.25.1-2 No fix listed
Show 11 more
ProductAffected versionsFixed in
debian/ruby-loofah(Debian:13) = 2.25.2-1 No fix listed
debian/ruby-loofah(Debian:14) < 2.25.2-1 2.25.2-1
debian/ruby-loofah(Debian:14) = 2.24.0-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.24.1-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.0-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.1-1 No fix listed
debian/ruby-loofah(Debian:14) = 2.25.1-2 No fix listed
ubuntu/ruby-loofah(Ubuntu:22.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:24.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:26.04) All versions No fix listed
ubuntu/ruby-loofah(Ubuntu:26.10) All versions No fix listed

References