Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Regex complexity limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | The CVSS v3.1 score of 4.2 reflects moderate risk with constrained real-world exploitability. The vector (AV:N/AC:H/PR:H/UI:R) indicates network accessibility but requires high privileges, high attack complexity, and user interaction-factors that significantly limit practical attack surface in typical deployments. No public exploit code exists at time of analysis, and this vulnerability is not tracked in CISA KEV. The ReDoS attack class is well-understood but requires specific application context: JWT verification must be enabled with an allowedAud regex, an attacker must have high privileges to generate valid JWTs, and a human user must interact with token verification. In environments where JWT validation is automated without human gates or where allowedAud uses simple string matching rather than complex regexes, real-world risk is diminished. However, for applications performing JWT verification in response to high-privilege authenticated requests with user interaction, sustained DoS via CPU exhaustion during regex evaluation poses operational risk. |
| Exploit ScenarioDerived | An authenticated user with JWT generation privileges crafts a malicious JWT containing a specially designed aud claim that exploits catastrophic backtracking in a complex allowedAud regex pattern configured by the application. When the application or a privileged user validates this JWT, the regex engine enters exponential backtracking during aud claim verification, consuming CPU resources and causing the verification process to hang or timeout. An attacker could repeat this attack to exhaust CPU resources and degrade service availability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 09, 2026
Denial of service in fast-jwt 5.0.0 through 6.2.0 allows authenticated remote attackers with user interaction to cause significant CPU consumption via crafted JWT tokens that trigger catastrophic backtracking in regular expression evaluation when the allowedAud verification option is configured with a regex pattern. The vulnerability exploits attacker-controlled aud claims evaluated against user-supplied regexes, resulting in ReDoS (regular expression denial of service). Vendor-released patch available in version 6.2.1.
RemediationAI
Vendor-released patch: fast-jwt version 6.2.1 or later. Upgrade the fast-jwt package to version 6.2.1 immediately. The fix is documented in GitHub commit b0be0ca161593836a153d5180ca5358ad9b5de94 and release https://github.com/nearform/fast-jwt/releases/tag/v6.2.1. For applications unable to upgrade immediately, audit JWT verification configurations to identify use of allowedAud with regular expressions; consider replacing regex-based audience validation with explicit string matching or whitelist-based approaches. Review access controls to ensure high-privilege token generation is restricted.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
fast-jwt is a JavaScript library providing JWT signing and verification functionality. The vulnerability exists in the allowedAud verification logic, which permits configuration of audience claim validation using regular expressions. When JWT verification occurs, the attacker-controlled aud claim value is evaluated against the configured regex pattern using the JavaScript regex engine. Crafted aud claim payloads can construct inputs that cause catastrophic backtracking (ReDoS) in the regex engine, triggering exponential time complexity during pattern matching. CWE-1333 (Inefficient Regular Expression Complexity) classifies this root cause. The affected versions span the 5.0.0 through 6.2.0 release range of the nearform/fast-jwt package (cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:*:*:*).
Know when Fast Jwt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
fast-jwt provides fast JSON Web Token (JWT) implementation. From 5.0.0 to 6.2.0, a denial-of-service condition exists in fast-jwt when the allowedAud verification option is configured using a regular expression. Because the aud claim is attacker-controlled and the library evaluates it against the supplied RegExp, a crafted JWT can trigger catastrophic backtracking in the JavaScript regex engine, resulting in significant CPU consumption during verification. This vulnerability is fixed in 6.2.1.
Blast Radius
ecosystem impact- 4 npm packages depend on fast-jwt (2 direct, 2 indirect)
Ecosystem-wide dependent count for version 5.0.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Related Vulnerabilities in fast-jwt Regular Expression DoS
View all 2Authentication and authorization bypass in fast-jwt 6.2.0 through 6.2.4 (npm, NearForm) lets a remote, unauthenticated a
Signed JSON Web Tokens whose payload is a JSON array silently bypass every configured claim validator in the npm package
Authentication and authorization bypass in fast-jwt 6.3.0 and earlier lets a remote, unauthenticated attacker submit a f
fast-jwt through 6.2.4 silently accepts expired and not-yet-active JSON Web Tokens when a verifier is constructed with c
fast-jwt provides fast JSON Web Token (JWT) implementation. Rated medium severity (CVSS 5.9), this vulnerability is remo
Signature-verification bypass in NearForm fast-jwt 6.2.4 lets a remote, unauthenticated attacker forge HS256-signed JWTs
Expired JSON Web Tokens can keep being accepted by fast-jwt through version 6.3.3 when the verifier is created with cach
EUVD-2026-20899
GHSA-cjw9-ghj4-fwxf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB