Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

flavorjones/loofah
main @ c895c8b
4
Fixes
7
CVEs
HIGH
Peak severity
50.0%
Coverage
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.