fast-jwt is vulnerable to Authorization Bypass
81
CVE Score
High
Authorization Bypass
The JWT decoder verifies that the token payload is an object but omits an array guard, so a JSON array payload passes because typeof [] === 'object'. In the verifier's validation loop every claim check is skipped for an array payload because the claim in payload membership test is always false. Before the fix, a validly-signed token whose payload is an array bypasses all configured claim validators including expiry, issuer, audience, subject, and replay protection while still reporting success. The fix rejects array payloads during decoding so claim validation runs as documented.
Upgrade the fast-jwt library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you rely on claim validators such as allowedIss, allowedAud, allowedSub, or expiry while a signed token payload can be a JSON array.
0.0.1 - 6.2.4
Fixed in 6.3.0fast-jwt is vulnerable to Authorization Bypass in versions 0.0.1 - 6.2.4.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.