Intel

AIKIDO-2026-208205

fast-jwt is vulnerable to Insufficient Session Expiration

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

59

CVE Score

Medium

Insufficient Session Expiration

Are you affected? Scan for Free

TL;DR

The verifier's clockTolerance option only rejects negative numbers and does not reject a non-finite value, so configuring it as infinite disables both expiry and not-before validation. The tolerance flows into the date-claim comparisons as positive and negative infinity, making every time-based check pass unconditionally. Before the fix, expired or not-yet-active tokens are accepted as valid, and the poisoned values also corrupt the verifier's cache so affected entries stay valid until eviction. The fix requires clockTolerance to be a finite non-negative number.

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 configure the verifier's clockTolerance option to a non-finite value such as Infinity.

Package

Versions

1.5.0 - 6.2.4

Fixed in 6.3.0

Background info

fast-jwt is vulnerable to Insufficient Session Expiration in versions 1.5.0 - 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