CVE 4.2 MEDIUM

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

4.2 / 10
MEDIUM
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H

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.

Basic Information

ID CVE-2026-35041
Source GitHub_M
Published Apr 9, 2026 at 14:55
Modified Apr 9, 2026 at 16:15

Affected Product

Vendor nearform
Product fast-jwt
Version >= 5.0.0, < 6.2.1
Affected Versions nearform fast-jwt >= 5.0.0, < 6.2.1

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.