Security context

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

murraco/spring-boot-jwt
master @ cc9c1bd
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
src/main/java/murraco/security/JwtTokenFilter.java: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix 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 missing @EnableWebSecurity annotation prevented the custom Spring Security configuration from registering, silently disabling all defined access controls.
Auth Bypass: Failure to explicitly clear the SecurityContextHolder when JWT validation failed could allow subsequent unauthorized requests to reuse polluted or stale authentication state.