Security context

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

scrapy/w3lib
master @ 0122084
2
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Denial of Service: 1 prior fix. Scrutinize any change in this area.
w3lib/html.py: most-fixed (1 issue). 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.

SSRF: Inconsistent URL parsing can allow attackers to inject C0 control characters or whitespace, bypassing downstream domain allowlists or routing logic to trigger SSRF. Standardizing URL parsing according to the URL Living Standard is critical to prevent malicious redirection or arbitrary internal requests.
Denial of Service: Parsing untrusted HTML containing extremely large numeric entities can trigger unhandled OverflowErrors in character conversion operations like `chr()`, leading to process crashes and denial of service. Robust boundary validation and exception handling are required for all entity decoding entry points.