Incorrect Regular Expression Affecting fast-jwt package, versions <6.2.1


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.07% (22nd 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 Incorrect Regular Expression vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-FASTJWT-15965926
  • published10 Apr 2026
  • disclosed9 Apr 2026
  • creditFranciny Rojas

Introduced: 9 Apr 2026

NewCVE-2026-35040  (opens in a new tab)
CWE-185  (opens in a new tab)

How to fix?

Upgrade fast-jwt to version 6.2.1 or higher.

Overview

fast-jwt is a Fast JSON Web Token implementation

Affected versions of this package are vulnerable to Incorrect Regular Expression in the allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce options when used with RegExp objects and RegExp is configured with modifiers such as /y and /g. An attacker can cause intermittent authentication failures and potentially trigger retry storms or operational disruptions by repeatedly submitting valid tokens, leading to unpredictable acceptance or rejection outcomes.

CVSS Base Scores

version 4.0
version 3.1