Highlights
Auth Bypass: 18 prior fixes. Scrutinize any change in this area.
lib/session.js: most-fixed (12 issues). Treat as high-risk during review.
33 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: Type checking errors and incorrect variable evaluations in password complexity checking repeatedly bypassed validation rules entirely. Ensuring strict types and proper variable references is vital to prevent plain-text or weak password persistence.
Auth Bypass: User searches using unanchored regular expressions or unescaped query strings allowed substring matches and ReDoS. Proper validation, escaping, and anchoring are required for email lookups to prevent unauthorized logins.
CSRF: Flawed token extraction patterns, such as failing back to checking request cookies directly, compromised CSRF protections. Tokens must be extracted from independent headers or payloads and compared in constant time.