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.
Fix
Patch, vendor advisory and mitigation references on NVD 1
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987 Exploit, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 9.1 · nearformNVD modified 2026-10-26 21:10
Affected (CPE criteria) 1
cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:*
References 1
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987 Exploit, Vendor Advisory