CVE-2026-73491 Loofah `allowed_uri?` does not detect `javascript:` URIs split by named whitespace character references
- 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: 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.
Upgrade path
10 packages: 2 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- https://github.com/flavorjones/loofah/security/advisories/GHSA-8whx-365g-h9vv vendor-advisory
- https://github.com/flavorjones/loofah/commit/5e91af861e3cdab47b91dd0b81f3afdfd13a5e19 patch
- github.com product
- https://github.com/flavorjones/loofah/releases/tag/v2.25.2
- https://github.com/flavorjones/loofah/pull/308
- Red Hat CVE page vendor-advisory
- Red Hat Bugzilla 2514986 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Debian Security Tracker CVE-2026-73491 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-57628 third-party-advisory