Incorrect Behavior Order: Validate Before Canonicalize in Loofah - #VU159824
Published: November 6, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to trigger browser requests that disclose a viewer's IP address, user agent, and access timing.
The vulnerability exists due to Loofah's CSS sanitizer checking for prohibited URLs before decoding escaped parentheses in style attributes. An unauthenticated remote attacker can submit crafted HTML to applications using Loofah's default allowlist and cause requests to attacker-chosen URLs when another user views the sanitized content.