Cross-site scripting in Loofah - CVE-2026-126209
Published: November 8, 2026 / Updated: November 13, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to execute JavaScript in a victim's browser through applications using Loofah's URI validation helper.
The vulnerability exists due to Loofah's allowed_uri? helper stripping whitespace before decoding semicolon-less numeric character references when called directly with HTML-encoded URLs. An unauthenticated remote attacker can submit an encoded script URL that passes validation and executes when rendered in a browser-interpreted URI attribute and activated by a victim.