{"answers":{"affected":"2 open source packages ship an affected version, including fast-jwt. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-35039 in the wild and no public exploit code.","fix":"Upgrade fast-jwt to 6.2.0 or later.","what":"CVE-2026-35039 is a critical authentication bypass vulnerability in nearform fast-jwt, published on 6 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-35039 and fix it if it is affected.\n\nWhat it is: CVE-2026-35039 is a critical authentication bypass vulnerability in nearform fast-jwt, published on 6 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-35039 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- fast-jwt (npm): affected from 0.0.1; fixed in 6.2.0\n- fast-jwt (npm): affected from 0.0.1; fixed in 6.2.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-35039/ (Markdown: https://insights.sbomify.com/CVE-2026-35039/index.md)","id":"CVE-2026-35039","markdown":"https://insights.sbomify.com/CVE-2026-35039/index.md","name":"CVE-2026-35039","record":{"aliases":["GHSA-rp9m-7r4c-75qg"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Node.js JWT library","requires_auth":"none","summary":"Improper cache key generation in fast-jwt allows token verification to return claims from different tokens, enabling user impersonation and privilege escalation.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fast-jwt","vendor":"nearform"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference"},{"id":"CWE-345","name":"Insufficient Verification of Data Authenticity"},{"id":"CWE-1289","name":"Improper Validation of Unsafe Equivalence in Input"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"fast-jwt: Cache Confusion via cacheKeyBuilder Collisions Can Return Claims From a Different Token (Identity/Authorization Mixup)","id":"CVE-2026-35039","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"fast-jwt: Stateful RegExp (/g or /y) causes non-deterministic allowed-claim validation (logical DoS)","id":"CVE-2026-35040"},"packages":[{"ecosystem":"npm","fixed":["6.2.0"],"introduced":["0.0.1"],"last_affected":[],"package":"fast-jwt","purl":null,"source":"GHSA-rp9m-7r4c-75qg"},{"ecosystem":"npm","fixed":["6.2.0"],"introduced":["0.0.1"],"last_affected":[],"package":"fast-jwt","purl":"pkg:npm/fast-jwt","source":"GHSA-rp9m-7r4c-75qg"}],"prev":{"headline":"signalk-server: Arbitrary Prototype Read via `from` Field Bypass","id":"CVE-2026-35038"},"products":["fast-jwt"],"published":"2026-04-06","related":[{"cvss_score":9.1,"headline":"fast-jwt has an incomplete fix for CVE-2023-48223: JWT Algorithm Confusion via Whitespace-Prefixed RSA Public Key","id":"CVE-2026-34950","kev_date_added":null,"published":"2026-04-06"},{"cvss_score":7.5,"headline":"fast-jwt accepts unknown `crit` header extensions (RFC 7515 §4.1.11 MUST violation)","id":"CVE-2026-35042","kev_date_added":null,"published":"2026-04-06"},{"cvss_score":5.9,"headline":"fast-jwt JWT Algorithm Confusion","id":"CVE-2023-48223","kev_date_added":null,"published":"2023-11-20"},{"cvss_score":5.3,"headline":"fast-jwt: Stateful RegExp (/g or /y) causes non-deterministic allowed-claim validation (logical DoS)","id":"CVE-2026-35040","kev_date_added":null,"published":"2026-04-09"},{"cvss_score":4.2,"headline":"ReDoS in fast-jwt when using RegExp in allowed* leading to CPU exhaustion during token verification","id":"CVE-2026-35041","kev_date_added":null,"published":"2026-04-09"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-05-13","vendors":["nearform"]},"summary":"Improper cache key generation in fast-jwt allows token verification to return claims from different tokens, enabling user impersonation and privilege escalation.","url":"https://insights.sbomify.com/CVE-2026-35039/"}