Security context

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

netlify/gotrue
master @ aac5b57
38
Fixes
0
CVEs
CRITICAL
Peak severity
45.9%
Coverage
Highlights
Auth Bypass: 11 prior fixes. Scrutinize any change in this area.
api: most-fixed (7 issues). Treat as high-risk during review.
13 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.

Auth Bypass: Routing errors, incorrect switch case labels, or whitespace-only inputs can lead to complete authentication bypasses when resolving confirmation or recovery tokens. Developers must enforce strict string comparison and ensure SQL queries hit exact, non-empty matches.
Denial of Service: Failure to cleanly roll back database transactions on signup error paths leads to immediate connection and resource exhaustion. Developers must guarantee that all early-return paths invoke database transaction rollbacks.
Information Disclosure: Leaking sensitive credentials (OAuth codes, JWT tokens, metadata) inside internal error payloads or debug logs exposes active sessions. Redaction mechanisms must be applied to logging blocks and generic error responses before reaching boundaries.