Insufficient Session Expiration 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.33% (25th 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 Learn

Learn about Insufficient Session Expiration vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-FASTJWT-20825053
  • published11 Oct 2026
  • disclosed8 Oct 2026
  • creditAndrew Ridings

Introduced: 8 Oct 2026

NewCVE-2026-107721  (opens in a new tab)
CWE-613  (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 Insufficient Session Expiration in src/verifier.js when the clockTimestamp, clockTolerance, or cacheTTL verifier options are set to non-finite values such as Infinity or NaN. The previous validation used a truthy guard (x && ...) and checked only that the value was a non-negative number, so Infinity passed validation and disabled exp/nbf claim enforcement entirely, while NaN bypassed the truthy check and also went undetected. An attacker who can control these verifier options can cause token expiry and not-before checks to be silently skipped, allowing expired or not-yet-valid tokens to be accepted as valid.

CVSS Base Scores

version 4.0
version 3.1