Security context

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

waiting-for-dev/devise-jwt
main @ 22c9ec2
2
Fixes
0
CVEs
HIGH
Peak severity
100.0%
Coverage
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
lib/devise/jwt.rb: 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: A configuration caching side-effect caused the JWT decoding secret to be initialized as nil, which silently disabled signature verification and allowed arbitrary JWTs to bypass authentication.
Auth Bypass: Using ActiveRecord's 'find' method caused an unhandled RecordNotFound exception when a JWT subject user no longer existed, crashing the authentication middleware context rather than returning nil for a clean authentication failure.