CVE-2026-35041
published medium CVSS 3.1 · 4.2ReDoS in fast-jwt when using RegExp in allowed* leading to CPU exhaustion during token verification
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nearform | — | fast-jwt>= 5.0.0, < 6.2.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.2 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nearform | fast-jwt | >= 5.0.0, < 6.2.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
References
4Provider assertions
2GitHub_M · cna
ReDoS in fast-jwt when using RegExp in allowed* leading to CPU exhaustion during token verification
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- aea3e905c8f62b32030020c2c8339609f075943cb4736e9cacc9dcabab054c34
- Ingested
- 23 Sep 2026, 09:11:31 UTC
- Source record
- Official CVE record