Security context

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

medusajs/medusa
develop @ b9f6459
68
Fixes
3
CVEs
HIGH
Peak severity
37.8%
Coverage
Highlights
Auth Bypass: 50 prior fixes. Scrutinize any change in this area.
packages/medusa/src/api/auth: most-fixed (3 issues). Treat as high-risk during review.
39 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: Google OAuth authentication was susceptible to account hijacking and bypasses due to a lack of signature and claim verification of incoming identity tokens against Google's JWKS, as well as tracking users via mutable emails rather than immutable subject identifiers.
Auth Bypass: Role delegation and assignment workflows failed to enforce administrative boundary constraints properly, potentially permitting lower-privileged users to escalate privileges by assigning or modifying roles with permission scopes exceeding their own.
Auth Bypass: Token verification mechanisms permitted authorization bypasses by calling next() instead of terminating on failed validations or missing actor-identity/entity identifiers.