Security context

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

mongodb-js/mongodb-core
master @ 9c09c28
10
Fixes
0
CVEs
HIGH
Peak severity
62.5%
Coverage
Highlights
Auth Bypass: 6 prior fixes. Scrutinize any change in this area.
lib/auth/scram.js: most-fixed (4 issues). Treat as high-risk during review.
8 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: Flawed control flow (failing to return early on errors) and incorrect state tracking of connection counters/cached credentials in SCRAM allowed invalid logins to succeed.
Auth Bypass: Failing to check MongoDB-returned error fields and tracking mixed-success sessions erroneously validated invalid credentials in MongoCR.
Auth Bypass: SSPI validation was bypassed when responding with null or non-object payloads due to weak response verification.