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

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS: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.

DistributionPackageReleaseVersionStatus
Debianruby-loofahsid2.25.2-1fixed
Debianruby-loofahforky2.25.2-1fixed
Debianruby-loofahtrixie2.24.0-1vulnerable
Debianruby-loofahbookworm2.19.1-1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianruby-loofahsourcesid2.25.2-1not yet assignedNot reportedNot reported
Debianruby-loofahsourceforky2.25.2-1not yet assignedNot reportedNot reported
Debianruby-loofahsourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianruby-loofahsourcebookworm(unfixed)not yet assignedNot reportedNot 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 · bookworm

      Affected

      nvd · ruby-loofah · debian · bookworm; nvd · ruby-loofah · debian · 12

    • 2.19.1-1 · all · bookworm

      Affected

      nvd · ruby-loofah · debian · bookworm; nvd · ruby-loofah · debian · 12

[Debian 13 (Trixie)]

  • [ruby-loofah]Affected
    Details (2)
    • 2.24.0-1 · all · trixie

      Affected

      nvd · ruby-loofah · debian · 13

    • 2.24.0-1 · all · trixie

      Affected

      nvd · ruby-loofah · debian · 13

Observed:

References