CVE-2026-35039 fast-jwt Affected by Cache Confusion via cacheKeyBuilder Collisions Can Return Claims From a Different Token (Identity/Authorization Mixup)
CriticalCVSS 9.1
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: total
Description
fast-jwt provides fast JSON Web Token (JWT) implementation. From 0.0.1 to before 6.2.0, setting up a custom cacheKeyBuilder method which does not properly create unique keys for different tokens can lead to cache collisions. This could cause tokens to be mis-identified during the verification process leading to valid tokens returning claims from different valid tokens and users being mis-identified as other users based on the wrong token. Version 6.2.0 contains a patch.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nearform fast-jwt | = >= 0.0.1, < 6.2.0; >= 0.1.0, < 6.1.0 | 6.1.0 | Fixed |
| npm fast-jwt(npm) | >= 0.0.1, < 6.2.0 | 6.2.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nearform fast-jwt | = >= 0.0.1, < 6.2.0 | No fix listed |
| npm fast-jwt(npm) | >= 0.0.1, < 6.2.0 | 6.2.0 |
| nearform fast-jwt | >= 0.1.0, < 6.1.0 | 6.1.0 |
References
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-rp9m-7r4c-75qg mitigation vendor-advisory
- https://github.com/nearform/fast-jwt/commit/de121056c6415b58770c60640881eaec67ac4ceb patch
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product