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

Published Aug 12, 2026
·
Updated

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.alloweduri? 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 alloweduri? 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 alloweduri?; Loofah's default sanitize() path is not affected. This issue is fixed in version 2.25.2.

Affected Software

1 affected component
Loofah Loofah>=2.25.0<=2.25.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade loofah to a version that resolves this vulnerability.

    Fixed in 2.25.2

Event History

Aug 12, 2026
CVE Published
via MITRE·08:59 PM
Data Sourced
via MITRE·08:59 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-73491?

The severity of CVE-2026-73491 is 55.

2

How do I fix CVE-2026-73491?

To fix CVE-2026-73491, upgrade Loofah to version 2.25.3 or later.

3

What does CVE-2026-73491 affect?

CVE-2026-73491 affects Loofah versions 2.25.0 to 2.25.2.

4

What type of vulnerability is CVE-2026-73491?

CVE-2026-73491 is a URI validation vulnerability in the Loofah library.

5

What can happen if CVE-2026-73491 is exploited?

If exploited, CVE-2026-73491 can allow JavaScript execution via manipulated URI inputs.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203