Security context

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

thirdweb-dev/engine
main @ 0b2cfe9
25
Fixes
0
CVEs
CRITICAL
Peak severity
72.7%
Coverage
Highlights
Auth Bypass: 13 prior fixes. Scrutinize any change in this area.
src/server/middleware/auth.ts: most-fixed (9 issues). Treat as high-risk during review.
20 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: Multiple fixes to the same middleware show a pattern of incorrect URL matching and incomplete enforcement, indicating a fragile, bypass-prone auth core.
Auth Bypass: A critical control-flow flaw allowed unauthenticated access by calling next() unconditionally, highlighting the danger of missing early returns in auth middleware.
IP Allowlist Bypass: IP allowlist was initially missing on keypair, websocket, and access token paths, and later relied on spoofable req.ip, showing inconsistent enforcement across auth methods.