CVE-2026-34950
CRITICAL 9.1CVSS 3.1fast-jwt: Incomplete fix for CVE-2023-48223: JWT Algorithm Confusion via Whitespace-Prefixed RSA Public Key
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.
- Published
- 6 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-20CWE-327
- Also known as
- GHSA-mvf2-f6gm-w987
- Sources
- NVDJSONOSV GHSA-mvf2-f6gm-w987JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nearform | fast-jwtcpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:* |
< 6.2.0 | 6.2.0 |
| OSV | npm | fast-jwt | < 6.2.0 | 6.2.0 |
References
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-34950 · ADVISORY
- https://github.com/advisories/GHSA-c2ff-88x2-x9pg · ADVISORY
- https://github.com/nearform/fast-jwt · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Apr 2026)