Improper Verification of Cryptographic Signature Affecting fast-jwt package, versions <6.3.1


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.26% (16th 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-20825050
  • published11 Oct 2026
  • disclosed8 Oct 2026
  • creditSri Charan

Introduced: 8 Oct 2026

NewCVE-2026-107720  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade fast-jwt to version 6.3.1 or higher.

Overview

fast-jwt is a Fast JSON Web Token implementation

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature via createVerifier in src/verifier.js, when an empty string or null is passed as the key option. Because the falsy-key branch skipped key preparation, a caller-supplied algorithms allowlist remained active with no key to check against. verifyToken then saw neither a key nor a signature and accepted forged, unsigned tokens as valid, allowing an attacker to bypass signature verification entirely by presenting an unsigned JWT.

CVSS Base Scores

version 4.0
version 3.1