Highlights
Auth Bypass: 18 prior fixes. Scrutinize any change in this area.
lib/schemes/oauth2.js: most-fixed (5 issues). Treat as high-risk during review.
6 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: Logical flaws in the auth middleware have repeatedly resulted in incorrect routing policies, such as routing unauthenticated users to protected sections or creating infinite redirect loops. Developers must ensure conditional route gates are thoroughly unit-tested for inverted logic.
Auth Bypass: Active HTTP request interceptors can leak authorization tokens across strategies or domains, or fail to gracefully terminate the session when a token refresh operation fails. Both failures result in persistent, unauthorized API calls using stale credentials.
Open Redirect: Weak relative URL validation checks permit attackers to inject malicious external domains into the post-login redirect parameters, leading to phishing-friendly open redirects. Ensure that query and hash boundaries are strictly checked.