Inefficient regular expression complexity in Loofah - #VU159823
Published: November 6, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to degrade application availability through excessive CPU consumption.
The vulnerability exists due to quadratic regular expression matching in Loofah's HTML5 sanitizer SVG local-reference check on JRuby or CRuby without linear-time matching. An unauthenticated remote attacker can submit HTML containing an SVG reference element with a long, newline-containing whitespace value in its href or xlink:href attribute, triggering excessive processing under the default configuration.