CVE-2026-35040: fast-jwt provides fast JSON Web Token (JWT) implementation
CVE-2026-35040 is a medium-severity flaw (CVSS 5.3) affecting fast-jwt. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.2.1, using certain modifiers on RegExp objects in the allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce options in verify functions can cause certain unintended behaviours. This is because some modifiers are stateful and will cause failures in every second verification attempt regardless of the validity of the token provided. Such modifiers are /g (global matchin
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-35040?
fast-jwt: upgrade to 6.2.1. Exact commands for each OS are on this page.
Is CVE-2026-35040 being exploited?
CVE-2026-35040 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-35040 affect?
CVE-2026-35040 affects fast-jwt. Severity is medium (CVSS 5.3). fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.2.1, using certain modifiers on RegExp objects in the allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce options in verify functions can cause certain unint
How urgent is CVE-2026-35040?
Priority 37/100. Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2026-35041 MEDIUM 4.2 UPGRADE fast-jwt provides fast JSON Web Token (JWT) implementation
- CVE-2026-34950 CRITICAL 9.1 UPGRADE fast-jwt provides fast JSON Web Token (JWT) implementation
- CVE-2026-35042 HIGH 7.5 UPGRADE fast-jwt provides fast JSON Web Token (JWT) implementation
- CVE-2026-35039 CRITICAL 9.1 UPGRADE fast-jwt provides fast JSON Web Token (JWT) implementation