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

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

Affected Software

1 affected component
ruby/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·09:00 PM
Data Sourced
via MITRE·09:00 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-73492?

The severity of CVE-2026-73492 is rated at 47.

2

How do I fix CVE-2026-73492?

To fix CVE-2026-73492, update Loofah to version 2.25.3 or later.

3

What is the impact of CVE-2026-73492?

CVE-2026-73492 allows for the potential execution of XSS attacks through improperly validated `javascript:` URIs.

4

Which versions of Loofah are affected by CVE-2026-73492?

Loofah versions 2.25.0 to 2.25.2 are affected by CVE-2026-73492.

5

What type of vulnerability is CVE-2026-73492 classified as?

CVE-2026-73492 is classified as an XSS vulnerability.

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