Cross-site scripting in Loofah - #VU128121

 

Cross-site scripting in Loofah - #VU128121

Published: April 27, 2026


Vulnerability identifier: #VU128121
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Green
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Mike Dalessio
Affected software:
Loofah

Detailed vulnerability description

The vulnerability allows a remote attacker to perform cross-site scripting.

The vulnerability exists due to improper input validation in Loofah::HTML5::Scrub.allowed_uri? when processing HTML-encoded user-supplied URIs. A remote attacker can supply a specially crafted URI to perform cross-site scripting.

This issue only affects direct callers of the string-level helper with HTML-encoded strings; the default sanitize() path is not affected.


Remediation

Install security update from vendor's website.

Sources