Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
lib/sessionmanager.js: most-fixed (4 issues). Treat as high-risk during review.
3 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.
Session Fixation: Session IDs were historically not regenerated during login or logout events, allowing an attacker to fixate a session ID and hijack a victim's authenticated state. CVE-2022-25896 documents this risk in Passport versions prior to 0.6.0.
Auth Bypass: Flaws in session clearance and save sequences allowed deleted user states to linger across regenerations, or created race conditions by executing callbacks before the underlying session state was stored.
Auth Bypass: A critical gap existed where null or false deserialization results did not explicitly invalidate or delete the active session, allowing previously logged-in users whose accounts were deactivated or deleted to remain authenticated.