Security context

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

laravel/sanctum
4.x @ fee27a5
4
Fixes
0
CVEs
HIGH
Peak severity
75.0%
Coverage
Highlights
Auth Bypass: 4 prior fixes. Scrutinize any change in this area.
src/Http/Middleware/AuthenticateSession.php: most-fixed (2 issues). 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.

Auth Bypass: Loose comparisons during token ability lookups can allow attackers to bypass intended ability-based restrictions by matching unexpected types. Enforcing strict comparison is vital.
Auth Bypass: Failure to validate the session password hash against the active user password can permit revoked, logged-out, or outdated sessions to retain their authenticated state.
Auth Bypass: Malformed bearer token formats extracted from the Authorization header could bypass format-specific validations or cause unintended query behavior in database adapters.