CVE-2026-35040: fast-jwt: Stateful RegExp (/g or /y) causes non-deterministic allowed-claim validation (logical DoS)
nearform · fast-jwt
Affected: nearform fast-jwt · Exploitation: unlikely (under 1%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 34% of scored CVEs
DescriptionCVE.org
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 matching) and /y (sticky matching). This does NOT allow invalid tokens to be accepted, only for valid tokens to be improperly rejected in some configurations. Instead it causes 50% of valid authentication requests to fail in an alternating pattern. This vulnerability is fixed in 6.2.1.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- nearform · fast-jwt< 6.2.1
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Unlikely (under 1%). EPSS under 1%, or no score yet.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- nearform
- Published
- April 2026
CoverageNo articles yet
No CyberSIXT article names CVE-2026-35040 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-440cwe.mitre.org
- github.com/nearform/fast-jwt/security/advisories/GHSA-3j8v-cgw4-github.com
- github.com/nearform/fast-jwt/pull/593github.com
- github.com/nearform/fast-jwt/commit/18d25904e4617e8753526d1b3ab5github.com
- github.com/nearform/fast-jwt/releases/tag/v6.2.1github.com