Highlights
Denial of Service: 4 prior fixes. Scrutinize any change in this area.
packages/api/src/upload.js: most-fixed (3 issues). Treat as high-risk during review.
5 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.
Denial of Service: Unhandled exceptions during multipart form-data parsing (e.g., empty payloads or bad argument signatures in exception handlers) can crash the API worker, leading to process disruption. Secure parsing and graceful HTTP error mapping are essential.
Auth Bypass: Flaws in extracting token claims (such as issuer fields) from authentication magic links can allow unauthenticated requests to bypass credentials checking and access restricted routes.
Broken Access Control: Database functions that perform critical operations, like deleting user uploads, can suffer from broken access control if they fail to explicitly verify that the authenticated identity matches the owner of the target resource.