Security context

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

mysqljs/mysql
master @ dc9c152
2
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Improper Certificate Validation: 1 prior fix. Scrutinize any change in this area.
lib/Connection.js: most-fixed (1 issue). Treat as high-risk during review.
2 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.

Improper Certificate Validation: TLS sockets were created without rejecting unauthorized certificates by default, enabling man-in-the-middle attacks. The fix changed the default to rejectUnauthorized=true, but any code path that constructs TLS connections must consistently apply this.
Use of Insecure Authentication: The old MySQL password authentication (scramble323) was enabled by default, exposing credentials over the wire. The fix gated it behind an insecureAuth flag, but the handshake sequence must never fall back to it unless explicitly opted in.