CVE-2026-34950: Vulnerability in Nearform Fast-jwt
Critical. 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.
npm, CWE-327, CWE-20
- Exploitation
- None confirmed
- Severity
- 9.1 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-mvf2-f6gm-w987
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Weakness
- CWE-327, CWE-20
- Published
- 2 Apr 2026
- Last change
- 26 Oct 2026
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- Nearform Fast-jwt Before 6.2.0. Fixed in 6.2.0
Affected packages
Vulnerable version ranges and fixed releases
- fast-jwt npm, Affected through 6.1.0. Fixed in 6.2.0
Advisories
Vendor and security advisories
Related
- Fast-jwt vulnerabilities Recent advisories, watch this product