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.