Highlights
Path Traversal: 6 prior fixes. Scrutinize any change in this area.
sanic/mixins/routes.py: most-fixed (3 issues). Treat as high-risk during review.
10 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.
Path Traversal: Inadequate canonicalization of relative path elements allowed attackers to escape static roots. Sanitization patterns must use strict pathlib verification instead of simple string matches or weak regex checks.
HTTP Request Smuggling: Parsing of Content-Length and chunked transfer encoding sizes was vulnerable to smuggling. Low-level parsers must strictly validate header bounds and reject trailing bytes in chunked messages.
Path Traversal: Static file serving components and directory handlers did not safely resolve symbolic links, allowing attackers to request arbitrary files beyond the configured static directory.