fast-jwt is vulnerable to Improper Verification of Cryptographic Signature
74
CVE Score
High
Improper Verification of Cryptographic Signature
When an application supplies serialized public JWK or JWKS JSON as the verifier key, fast-jwt does not recognize the asymmetric key material because it is not PEM-encoded and classifies it as a raw HMAC secret. If HS256 is permitted or inferred, the verifier accepts a token signed with that same public JSON text used as an HMAC key. Because JWK public material is public by design, anyone who knows the exact serialized key bytes can forge an HS256 token with arbitrary claims and have it accepted, bypassing authentication and authorization. The fix detects asymmetric JWK/JWKS structures and rejects them as HMAC secrets instead of silently reclassifying them.
Upgrade the fast-jwt library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application passes raw serialized public JWK or JWKS JSON as the verifier key with HS256 permitted or inferred.
6.2.4 - 6.2.4
Fixed in 6.3.0fast-jwt is vulnerable to Improper Verification of Cryptographic Signature in versions 6.2.4 - 6.2.4.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.