Highlights
Auth Bypass: 7 prior fixes. Scrutinize any change in this area.
sign.js: most-fixed (4 issues). Treat as high-risk during review.
7 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 can bypass signature verification entirely by exploiting mismatched key types (e.g., symmetric vs asymmetric), missing algorithm constraints, or fallback behaviors in key validation routines. Ensuring strict type, curve, and parameter verification is critical.
Auth Bypass: Generating JWTs with falsy, missing, or hardcoded fallback secrets allows attackers to forge valid signatures. Rigidly gating the signing interface to reject empty or weak keys is essential to prevent insecure token minting.
Auth Bypass: The legacy default support for the 'none' algorithm allowed unauthenticated or self-signed tokens to bypass authentication logic entirely. Strict exclusion of 'none' except under explicit opt-in is required.