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.