Description
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.
Metrics
CVSS 3.1 9.1/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| nearform | fast-jwt | <= 6.1.0 |
References
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987Exploit, Vendor Advisory
Timeline
- Published
- Apr 6, 2026
- Last modified
- Oct 26, 2026
- NVD status
- Analyzed