{"id":"CVE-2026-34950","published":"2026-04-06T15:54:03Z","modified":"2026-04-06T18:43:16Z","title":"fast-jwt has an incomplete fix for CVE-2023-48223: JWT Algorithm Confusion via Whitespace-Prefixed RSA Public Key","vendor":"nearform","product":"fast-jwt","tier":"tail","description":{"text":"fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.1.0 and earlier, the publicKeyPemMatcher regex in fast-jwt/src/crypto.js uses a ^ anchor that is defeated by any leading whitespace in the key string, re-enabling the exact same JWT algorithm confusion attack that CVE-2023-48223 patched.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00255,"percentile":0.17244,"provenance":"source"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"references":[{"url":"https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":3.45},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"nearform","affectedVersions":[{"vendor":"nearform","product":"fast-jwt","versions":["<= 6.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-06T18:43:07.105733Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"fast-jwt","vulnerableRanges":["<6.2.0"],"patched":["6.2.0"],"from":["GHSA-mvf2-f6gm-w987"],"provenance":"source"}],"summary":{"text":"The fast-jwt library (product fast-jwt by nearform) contains an incomplete fix for the earlier algorithm confusion issue: in version 6.1.0 and earlier, the publicKeyPemMatcher regex in src/crypto.js uses a ^ anchor that any leading whitespace in the key string defeats. An attacker can exploit this over the network without authentication or user interaction to re-enable JWT algorithm confusion, potentially compromising token integrity, when the library processes a key string that begins with whitespace.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:34Z"},"euvd":{"id":"EUVD-2026-19356","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nearform-fast-jwt-cve-2023-48223","parents":[{"from":"CVE-2023-48223","to":"CVE-2026-34950","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-mvf2-f6gm-w987","via":"reference","url":"https://github.com/advisories/GHSA-c2ff-88x2-x9pg"}]}],"packageHistory":[{"cve":"CVE-2023-48223","published":"2023-11-20","fixed":"3.3.2","kev":false},{"cve":"CVE-2025-30144","published":"2025-03-19","fixed":"5.0.6","kev":false},{"cve":"CVE-2026-34950","published":"2026-04-06","fixed":"6.2.0","kev":false},{"cve":"CVE-2026-35039","published":"2026-04-06","fixed":"6.2.0","kev":false},{"cve":"CVE-2026-35040","published":"2026-04-09","fixed":"6.2.1","kev":false,"link":{"from":"CVE-2026-34950","to":"CVE-2026-35040","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-jwt","fromFixed":"6.2.0","toFixed":"6.2.1","daysApart":3}]}},{"cve":"CVE-2026-35041","published":"2026-04-09","fixed":"6.2.1","kev":false,"link":{"from":"CVE-2026-34950","to":"CVE-2026-35041","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:fast-jwt","fromFixed":"6.2.0","toFixed":"6.2.1","daysApart":3}]}}],"package":"npm:fast-jwt"}}