{"id":"CVE-2026-73491","published":"2026-08-12T20:59:18Z","modified":"2026-08-13T13:49:22Z","title":"Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references","vendor":"flavorjones","product":"loofah","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.3,"severity":"LOW","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00394,"percentile":0.2525,"provenance":"source"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"references":[{"url":"https://github.com/flavorjones/loofah/security/advisories/GHSA-8whx-365g-h9vv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/flavorjones/loofah/pull/308","tags":["x_refsource_MISC"]},{"url":"https://github.com/flavorjones/loofah/commit/5e91af861e3cdab47b91dd0b81f3afdfd13a5e19","tags":["x_refsource_MISC"]},{"url":"https://github.com/flavorjones/loofah/releases/tag/v2.25.2","tags":["x_refsource_MISC"]}],"priority":{"score":6.7,"factors":[{"name":"EPSS percentile","points":5.05},{"name":"CVSS severity","points":1.61}]},"vendorSlug":"flavorjones","affectedVersions":[{"vendor":"flavorjones","product":"loofah","versions":[">= 2.25.0, < 2.25.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-13T13:49:09.263231Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"loofah","vulnerableRanges":[">=2.25.0, <2.25.2"],"patched":["2.25.2"],"from":["GHSA-8whx-365g-h9vv"],"provenance":"source"}],"summary":{"text":"The Loofah HTML sanitisation library, in its Loofah::HTML5::Scrub.allowed_uri? method, fails to detect javascript: URIs whose scheme is obfuscated with HTML5 named whitespace references (&Tab; or &NewLine;) in versions 2.25.0 through 2.25.2. An attacker can exploit this when an application passes HTML-encoded strings directly to allowed_uri?, which then wrongly treats the URL as safe so a browser executes it, though the default sanitize() path is unaffected and the attack depends on an authenticated user with a specific application code path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:47Z"},"euvd":{"id":"EUVD-2026-57628","exploited":false,"provenance":"source"}}