Security context

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

jwtk/jjwt
main @ 401ba26
16
Fixes
1
CVEs
CRITICAL
Peak severity
30.8%
Coverage
Highlights
Auth Bypass: 9 prior fixes. Scrutinize any change in this area.
src/main/java/io/jsonwebtoken/impl/DefaultJwtParser.java: most-fixed (4 issues). Treat as high-risk during review.
12 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: Key confusion vulnerability where raw key bytes configured for ECDSA were improperly treated as symmetric key specifications, allowing attackers to forge signatures.
Auth Bypass: Premature validation of claims (expiration and nbf) prior to cryptographic signature verification allowed unauthenticated processing of malformed tokens.
Cryptographic Issues: Vulnerability to JVM ECDSA signature bypass (CVE-2022-21449) due to missing application-level validation of r and s coordinates and weak default signature formatting.