
CVE catalog
CVE-2026-73491
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 ja
- Severity
- Medium · CVSS 6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.39% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ruby-loofah | sid | 2.25.2-1 | fixed |
| Debian | ruby-loofah | forky | 2.25.2-1 | fixed |
| Debian | ruby-loofah | trixie | 2.24.0-1 | vulnerable |
| Debian | ruby-loofah | bookworm | 2.19.1-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ruby-loofah | source | sid | 2.25.2-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-loofah | source | forky | 2.25.2-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-loofah | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | ruby-loofah | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
Notes
[trixie] ruby-loofah: Minor issue [bookworm] ruby-loofah: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ruby-loofah]Affected
Details (2)
2.19.1-1· all · bookwormAffected
nvd · ruby-loofah · debian · bookworm; nvd · ruby-loofah · debian · 12
2.19.1-1· all · bookwormAffected
nvd · ruby-loofah · debian · bookworm; nvd · ruby-loofah · debian · 12
[Debian 13 (Trixie)]
- [ruby-loofah]Affected
Details (2)
2.24.0-1· all · trixieAffected
nvd · ruby-loofah · debian · 13
2.24.0-1· all · trixieAffected
nvd · ruby-loofah · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_22068-1.json]
- [https://github.com/flavorjones/loofah/commit/5e91af861e3cdab47b91dd0b81f3afdfd13a5e19]
- [https://github.com/flavorjones/loofah/pull/308]
- [https://github.com/flavorjones/loofah/releases/tag/v2.25.2]
- [https://github.com/flavorjones/loofah/security/advisories/GHSA-8whx-365g-h9vv]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-73491]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-73491]
- [https://security-tracker.debian.org/tracker/CVE-2026-73491]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-73491.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]