Security context

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

better-auth/better-auth
main @ 2039e73
31
Fixes
50
CVEs
CRITICAL
Peak severity
13.8%
Coverage
Highlights
Authorization Bypass: 9 prior fixes. Scrutinize any change in this area.
packages/better-auth/src/api/middlewares/origin-check.ts: most-fixed (3 issues). Treat as high-risk during review.
31 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.

Open Redirect: 3 historical fix(es) link packages/better-auth/src/api/middlewares/origin-check.ts to Open Redirect.
Authentication Bypass: 1 historical fix(es) link packages/better-auth/src/plugins/mcp/index.ts to Authentication Bypass.
Authentication Bypass: 1 historical fix(es) link packages/better-auth/src/plugins/email-otp/routes.ts to Authentication Bypass.