CVE-2026-34950 fast-jwt has an incomplete fix for CVE-2023-48223: JWT Algorithm Confusion via Whitespace-Prefixed RSA Public Key
CriticalCVSS 9.1
EPSS 0.25%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nearform fast-jwt | < 6.2.0; = <= 6.1.0 | 6.2.0 | Fixed |
| npm fast-jwt(npm) | < 6.2.0; <= 6.1.0 | 6.2.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nearform fast-jwt | = <= 6.1.0 | No fix listed |
| npm fast-jwt(npm) | <= 6.1.0 | No fix listed |
| nearform fast-jwt | < 6.2.0 | 6.2.0 |
| npm fast-jwt(npm) | < 6.2.0 | 6.2.0 |
References
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987 exploit vendor-advisory
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product