Security context

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

transitive-bullshit/agentic
main @ beffa8e
11
Fixes
15
CVEs
CRITICAL
Peak severity
33.3%
Coverage
Highlights
Auth Bypass: 5 prior fixes. Scrutinize any change in this area.
apps/api/src/lib/middleware/authenticate.ts: most-fixed (2 issues). Treat as high-risk during review.
9 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: A logic error in querying session expiration (< instead of >) caused active sessions to be rejected and expired sessions to be incorrectly treated as valid, leading to severe authentication bypasses.
Cryptographic Issues: Failing to await asynchronous SHA-256 hashing operations during API key and token generation resulted in predictable keys derived from unresolved Promise strings.
Auth Bypass: Using mutable, user-controlled slugs for access control validation instead of immutable unique identifiers allowed potential tenant isolation bypasses.