Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
BearerSecurityContextRepository: 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: Improper exception propagation during the instantiation of JWT authentication could bypass Spring Security's authorization filters, letting invalid tokens establish an authenticated context. Ensure all parsing and verification exceptions are caught and map to an empty context.
Auth Bypass: Extracting the Key ID ('kid') from the claims body instead of the JOSE header allows attackers to manipulate token signing keys in a way that can lead to authentication bypass. Header metadata must always be resolved from the envelope.