# CVE-2026-73492: Loofah `allowed_uri?` does not detect `javascript:` URIs split by numeric character references without semicolons

- 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-21T22:03:11.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-5qhf-9phg-95m2
- Weaknesses: CWE-79, 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: or vbscript: URIs whose scheme is split by semicolon-less numeric character references such as &#58, &#9, &#10, or &#13. CGI.unescapeHTML leaves these references encoded, so allowed_uri? reports the URL safe even though a browser decodes an encoded colon or strips encoded whitespace and executes the resulting URI scheme. 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-5qhf-9phg-95m2> (web)
- <https://github.com/flavorjones/loofah/pull/308>
- <https://github.com/flavorjones/loofah/commit/f1be9d893b5a8dd79240441a912d8897e74c38c0> (web)
- <https://github.com/flavorjones/loofah/releases/tag/v2.25.2> (web)
- <https://github.com/flavorjones/loofah> (package)

## Sources

- CVE List: [CVE-2026-73492](https://www.cve.org/CVERecord?id=CVE-2026-73492), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-5qhf-9phg-95m2](https://github.com/advisories/GHSA-5qhf-9phg-95m2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-73492](https://nvd.nist.gov/vuln/detail/CVE-2026-73492), Public domain, modified 2026-10-24

---

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