CVE-2026-34950 PUBLISHED

fast-jwt has an incomplete fix for CVE-2023-48223: JWT Algorithm Confusion via Whitespace-Prefixed RSA Public Key

Assigner: GitHub_M
Reserved: 31.03.2026 Published: 06.04.2026 Updated: 06.04.2026

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 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS Score: 9.1

Product Status

Vendor nearform
Product fast-jwt
Versions
  • Version <= 6.1.0 is affected

References

Problem Types

  • CWE-327: Use of a Broken or Risky Cryptographic Algorithm CWE