Security context

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

jgarber/redcloth
master @ e2bd03c
3
Fixes
1
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Cross-Site Scripting (XSS): 3 prior fixes. Scrutinize any change in this area.
lib/redcloth/formatters/html.rb: most-fixed (3 issues). Treat as high-risk during review.
0 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 (XSS): Attackers can bypass link and image sanitization filters using mixed-case URI schemes or alternative payload structures when HTML filtering options are active, allowing arbitrary script execution.
Regular Expression Denial of Service (ReDoS): The `sanitize_html` function utilizes complex regular expressions that are vulnerable to catastrophic backtracking when parsing specially crafted user input, leading to denial of service.