Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
lib/index.js: most-fixed (5 issues). Treat as high-risk during review.
3 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: Attackers could bypass token validation and authentication checks if invalid or expired tokens were treated as valid when the library was configured with credentialsRequired set to false. Additionally, checking token revocation state prior to signature verification could allow unverified tokens to pass check paths.
Cryptographic Issues: Failing to mandate configured verification algorithms during token verification (such as when integrated with jwks-rsa) opens the door to signature-downgrade attacks or the 'none' algorithm bypass, nullifying the security of the signature.
Denial of Service: Parsing malformed or unexpected JWT tokens in lib/index.js without robust try-catch handling around the decoding utility allowed unhandled exceptions to crash the application process entirely.