# CVE-2026-35039: fast-jwt Affected by Cache Confusion via cacheKeyBuilder Collisions Can Return Claims From a Different Token (Identity/Authorization Mixup)

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-04-03T04:07:09.000Z
- Modified: 2026-10-23T23:10:00.157Z
- Also known as: GHSA-rp9m-7r4c-75qg
- Weaknesses: CWE-345, CWE-706, CWE-1289
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nearform fast-jwt: >= 0.0.1, < 6.2.0; from 0.1.0 before 6.1.0
- fast-jwt (npm): from 0.0.1 before 6.2.0

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/nearform/fast-jwt/security/advisories/GHSA-rp9m-7r4c-75qg> (mitigation, vendor-advisory, web)
- <https://github.com/nearform/fast-jwt/commit/de121056c6415b58770c60640881eaec67ac4ceb> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35039> (advisory)
- <https://github.com/nearform/fast-jwt> (package)

## Sources

- CVE List: [CVE-2026-35039](https://www.cve.org/CVERecord?id=CVE-2026-35039), CVE Terms of Use, modified 2026-05-13
- GitHub Advisory Database: [GHSA-rp9m-7r4c-75qg](https://github.com/advisories/GHSA-rp9m-7r4c-75qg), CC-BY-4.0, modified 2026-04-08
- NVD: [CVE-2026-35039](https://nvd.nist.gov/vuln/detail/CVE-2026-35039), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-35039 · Whole record: https://cve.day/CVE-2026-35039.json · Rebuilt by cve.day 2026-11-25T22:59:18.041Z
