Highlights
Cross-Site Scripting: 3 prior fixes. Scrutinize any change in this area.
lib/loofah/html5/safelist.rb: most-fixed (2 issues). Treat as high-risk during review.
4 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Cross-Site Scripting: Attackers can bypass URI protocol validation by utilizing control characters or encoded entities (such as ':') that bypass checks but are executed by browsers. Proper sanitization requires recursive scrubbing and normalization before and after unescaping.
Cross-Site Scripting: Inclusion of risky media types (like 'image/svg+xml') or SVG-specific attributes (like 'to', 'by', and 'values' in animate tags) in the default safelist allows attackers to execute arbitrary JavaScript. Striking these from the allowed lists is critical to preventing markup injection.