Skip to main content

Fast Jwt CVE-2026-35041

| EUVDEUVD-2026-20899 MEDIUM
Inefficient Regular Expression Complexity (ReDoS) (CWE-1333)
2026-04-09 GitHub_M GHSA-cjw9-ghj4-fwxf
6.5
CVSS 3.1 · NVD
View

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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

fast-jwt 5.0.0, < 6.2.1

Affected Packages

npm fast-jwt fix: 6.2.1

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

NVD PRIMARY 6.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Oct 26, 2026 - 22:24 NVD
4.2 (MEDIUM) 6.5 (MEDIUM)
Patch released
Apr 09, 2026 - 20:30 nvd
Patch available
CVE Published
Apr 09, 2026 - 14:55 nvd
MEDIUM 4.2

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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 2

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy