CVE-2026-34950

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.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:*

History

22 Apr 2026, 20:17

Type Values Removed Values Added
References () https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987 - () https://github.com/nearform/fast-jwt/security/advisories/GHSA-mvf2-f6gm-w987 - Exploit, Vendor Advisory
First Time Nearform fast-jwt
Nearform
CPE cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:*

06 Apr 2026, 16:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-06 16:16

Updated : 2026-04-22 20:17


NVD link : CVE-2026-34950

Mitre link : CVE-2026-34950

CVE.ORG link : CVE-2026-34950


JSON object : View

Products Affected

nearform

  • fast-jwt
CWE
CWE-327

Use of a Broken or Risky Cryptographic Algorithm