Intel

AIKIDO-2026-394471

fast-jwt is vulnerable to Authorization Bypass

CVE-2026-107723Published Aug 3, 2026
August 3, 2026

81

CVE Score

High

Authorization Bypass

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the fast-jwt library to the patch version.

Who does this affect?

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.

Package

Versions

0.0.1 - 6.2.4

Fixed in 6.3.0

Background info

fast-jwt is vulnerable to Authorization Bypass in versions 0.0.1 - 6.2.4.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea