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

- Severity: Low 2.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-07-21T15:04:14.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-8whx-365g-h9vv
- Weaknesses: CWE-184
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- flavorjones loofah: >= 2.25.0, < 2.25.2
- loofah (RubyGems): from 2.25.0 before 2.25.2

## Every score

- GitHub_M: CVSS:4.0 2.3 Low `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`
- GitHub: CVSS:4.0 Low `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`

## References

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

## Sources

- CVE List: [CVE-2026-73491](https://www.cve.org/CVERecord?id=CVE-2026-73491), CVE Terms of Use, modified 2026-08-13
- GitHub Advisory Database: [GHSA-8whx-365g-h9vv](https://github.com/advisories/GHSA-8whx-365g-h9vv), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-73491](https://nvd.nist.gov/vuln/detail/CVE-2026-73491), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-73491 · Whole record: https://cve.day/CVE-2026-73491.json · Rebuilt by cve.day 2026-11-25T22:59:32.665Z
