Skip to main content
← All vulnerabilities
CVE-2026-34950GHSA-MVF2-F6GM-W987

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.2.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • nearform fast-jwt

    through 6.1.0

  • fast-jwtnpm

    fixed in 6.2.0

References 1

GitHub · nearform/fast-jwt