CVE-2026-35041
MEDIUM 6.5CVSS 3.1fast-jwt has a ReDoS when using RegExp in allowed* leading to CPU exhaustion during token verification
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.
- Published
- 9 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1333
- Also known as
- GHSA-cjw9-ghj4-fwxf
- Sources
- NVDJSONOSV GHSA-cjw9-ghj4-fwxfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nearform | fast-jwtcpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:* |
>= 5.0.0, < 6.2.1 | 6.2.1 |
| OSV | npm | fast-jwt | >= 5.0.0, < 6.2.1 | 6.2.1 |
References
- https://github.com/nearform/fast-jwt/commit/b0be0ca161593836a153d5180ca5358ad9b5de94 · Patch, WEB
- https://github.com/nearform/fast-jwt/pull/595 · Issue Tracking, Patch, WEB
- https://github.com/nearform/fast-jwt/releases/tag/v6.2.1 · Product, Release Notes, WEB
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-cjw9-ghj4-fwxf · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-35041 · ADVISORY
- https://github.com/nearform/fast-jwt · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 9 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Apr 2026)