Improper Validation of Specified Type of Input Affecting fast-jwt package, versions <6.3.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.36% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-FASTJWT-20825052
  • published11 Oct 2026
  • disclosed8 Oct 2026
  • creditRitvik Arya

Introduced: 8 Oct 2026

NewCVE-2026-107723  (opens in a new tab)
CWE-1287  (opens in a new tab)

How to fix?

Upgrade fast-jwt to version 6.3.0 or higher.

Overview

fast-jwt is a Fast JSON Web Token implementation

Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input via the decode function in src/decoder.js, where a JWT with a JSON array as its payload passes the object type check because typeof [] === 'object' in JavaScript. As a result, every configured claim validator (exp, nbf, iss, aud, sub, jti, nonce) is silently skipped for array-shaped payloads, because the claim in payload guard always returns false for arrays. An authenticated attacker can forge a token with an array payload to bypass all claim validation and gain unauthorized access.

CVSS Base Scores

version 4.0
version 3.1