jwt-simple is vulnerable to Improper Authentication
75
High Risk
JWE decryption through the default decrypt_token(&token, None) path does not validate claims, because DecryptionOptions::claim_options defaults to None and validation runs only when explicit options are supplied. Expired or not-yet-valid encrypted tokens are returned as successfully decrypted claims, allowing indefinite replay of expired tokens and acceptance of premature ones. This matters most for the AES key wrap modes, where a decryptable token is reasonably treated as a credential, and jwe is a default build feature. The fix always validates claims with default verification options when none are supplied.
You are affected if you are using a version that falls within the vulnerable range and you decrypt JWE tokens through the default decrypt_token path with the jwe feature enabled.
jwt-simple is vulnerable to Improper Authentication in versions 0.12.14 - 0.12.17.
Upgrade the jwt-simple library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant