Highlights
Cross-Site Scripting (XSS): 1 prior fix. Scrutinize any change in this area.
renderer/html/html.go: most-fixed (2 issues). Treat as high-risk during review.
3 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.
Reflected XSS: Inadequate sequencing of URL escaping and scheme validation permits the bypass of dangerous URL checks. Attackers can leverage encoded links to execute arbitrary scripts when processed by the HTML renderer.
Cross-Site Scripting (XSS): Typographical errors in MIME-type blocklists (such as checking for 'svg;' instead of 'svg+xml;') degrade the effectiveness of the HTML sanitizer, allowing embedded SVG-based XSS payloads to execute.
Memory Corruption: Direct slice header manipulations via unsafe.Pointer without keeping the underlying string alive can lead to premature garbage collection, manifesting as use-after-free conditions or memory corruption.