Improper Token Validation Flaw in fast-jwt Library by NearForm
CVE-2026-35039
9.1CRITICAL
What is CVE-2026-35039?
The fast-jwt library, widely used for implementing JSON Web Tokens, has a vulnerability that arises when a custom cacheKeyBuilder method improperly creates unique keys for different tokens. This flaw can result in cache collisions, leading to the risk of token misidentification during the verification process. Consequently, claims from one valid token might erroneously be associated with another user, causing users to be misidentified based on incorrect token validation. This could have serious implications for the security of applications utilizing the affected versions of fast-jwt.
Affected Version(s)
fast-jwt >= 0.0.1, < 6.1.0
