Inefficient regular expression complexity in rails-html-sanitizer - #VU161894
Published: November 8, 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 rails-html-sanitizer's SVG reference checks on JRuby or CRuby before 3.2 when custom rules allow SVG reference elements and reference attributes. An unauthenticated remote attacker can submit HTML containing an SVG reference element with a long whitespace-only href or xlink:href value to trigger disproportionate processing time.