Highlights
Auth Bypass: 3 prior fixes. Scrutinize any change in this area.
src/AccessToken.php: most-fixed (1 issue). 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: The ID token signature validation logic could be bypassed if the 'aud' (audience) claim was omitted from the JWT, as the library skipped matching verification when the claim was absent. Developers must ensure that required claims are strictly enforced and present before evaluating payload validity.
Auth Bypass: A bug in the algorithm selection logic allowed incorrect string types to bypass restrictions on permitted JWT decoding algorithms, reverting validation to unsafe defaults. Ensuring strict type safety and rigorous input sanitization for allowed algorithms is crucial during token decoding.
Auth Bypass: Insufficiently unique cache keys within credential loaders could lead to unintended cache collisions and token reuse across distinct scopes, target configurations, or security contexts. Ensuring robust entropy and including all differentiating parameters in the cache key is necessary.