Nearform fast-jwt
fast-jwt has an 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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.1critical · scored by CNA · CWE-327
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
nearform fast-jwt
- <= 6.1.0
Mitigation
Upgrade fast-jwt to 6.2.0 or later.
References
- Vendor advisory github.com/nearform/fast-jwt/security/advisori…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.