Authentication disruption via stateful claim regex reuse
Published Apr 9, 2026 · Updated Apr 9, 2026
Expected behavior violation in Nearform fast-jwt before 6.2.1 allows remote attackers to disrupt authentication via valid JWTs. In src/verifier.js, validateClaimValues repeatedly calls RegExp.test on a reused allowed-claim matcher without resetting lastIndex, so global or sticky patterns alternate between matching and failing. Only applications configuring allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce with /g or /y are affected, and valid requests are rejected on every second verification attempt.
Summary
What happened
Expected behavior violation in Nearform fast-jwt before 6.2.1 allows remote attackers to disrupt authentication via valid JWTs. In src/verifier.js, validateClaimValues repeatedly calls RegExp.test on a reused allowed-claim matcher without resetting lastIndex, so global or sticky patterns alternate between matching and failing. Only applications configuring allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce with /g or /y are affected, and valid requests are rejected on every second verification attempt.
The record
- CVE
- CVE-2026-35040
- Published
- Apr 9, 2026
- Updated
- Apr 9, 2026
- Vendor
- Nearform
- Product
- fast-jwt
- Classifications
- CWE-440, CWE-697, T1499
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Apr 9, 2026CVE publishedPublication date reported by the CVE source.
- Apr 9, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 6.2.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Stateful allowed-claim RegExp verification PoCproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo