PT-2026-71346 · Rubygems · Loofah
CVE-2026-73492
·
Published
2026-07-21
·
Updated
2026-08-14
CVSS v4.0
2.3
Low
| Vector | AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N |
Name of the Vulnerable Software and Affected Versions
Loofah versions 2.25.0 through 2.25.1
Description
Loofah is a library for manipulating and transforming HTML/XML documents and fragments. The
allowed uri? function within Loofah::HTML5::Scrub fails to reject javascript: or vbscript: URIs when the scheme is split by numeric character references without semicolons, such as :, 	, 
, or 
. Because CGI.unescapeHTML leaves these references encoded, the function incorrectly identifies the URL as safe. However, web browsers decode these encoded colons or strip encoded whitespace, leading to the execution of the URI scheme. This issue only affects callers that pass HTML-encoded strings directly to the allowed uri? function; the default sanitize() path is not affected.Recommendations
Update to version 2.25.2.
Avoid passing HTML-encoded strings directly to the
allowed uri? function.Exploit
Fix
XSS
Incomplete List of Disallowed Inputs
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Loofah