CVE-2026-35041

ReDoS in fast-jwt when using RegExp in allowed* leading to CPU exhaustion during token verification

MEDIUM
6.5
CVSS Score
Published: April 9, 2026 at 02:55 PM UTC
Updated: June 17, 2026 at 10:40 AM UTC
1 product affected across 1 vendorFast Jwt

Using fast-jwt by nearform?

Get instant alerts when new vulnerabilities affect fast-jwt - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.5
Exploit prediction
EPSS 0.3%
SSVC
PoC

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.2.15.0.0 ≤ v < 6.2.1
Affected range stops below 6.2.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_CONFIRMExploitMitigationVendor Advisory
Source: cverecord
https://github.com/nearform/fast-jwt/security/advisories/GHSA-cjw9-ghj4-fwxf
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/nearform/fast-jwt/pull/595
x_refsource_MISCProductRelease Notes
Source: cverecord
https://github.com/nearform/fast-jwt/releases/tag/v6.2.1

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-1333

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card