Security context

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

jwt/ruby-jwt
main @ 111e2b8
36
Fixes
0
CVEs
HIGH
Peak severity
78.9%
Coverage
Highlights
Auth Bypass: 29 prior fixes. Scrutinize any change in this area.
lib/jwt.rb: most-fixed (17 issues). Treat as high-risk during review.
25 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: Rejection of nil or empty HMAC keys is vital; failure to validate key inputs allows attackers to spoof valid signatures using blank keys.
Auth Bypass: Accessing or utilizing token claims before completing signature verification allows unauthenticated payloads to be processed as valid.
Auth Bypass: Allowing tokens to omit the 'alg' header or failing to enforce strict algorithm allowlists leads directly to algorithm-switching and signature-bypass attacks.