Cross-site scripting in Loofah - #VU128121
Published: April 27, 2026
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.