guardian is vulnerable to Improper Verification of Cryptographic Signature
82
CVE Score
High
Improper Verification of Cryptographic Signature
Guardian.revoke/3 in lib/guardian.ex acts on JWT claims obtained through peek, which performs no signature verification. A caller-supplied token is decoded without checking its signature, so forged claim values reach the token module's revoke and on_revoke callbacks. Before the fix, someone who knows a target's jti and sub claim values can forge a token and force revocation of that session without possessing the signing secret. The fix decodes and verifies the token signature before invoking the revoke callbacks while still allowing already-expired tokens to be revoked.
Upgrade the guardian library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application routes a caller-supplied token into Guardian.revoke/3 with a token module that mutates session state keyed by token claims.
1.0.0 - 2.4.0
Fixed in 2.4.1guardian is vulnerable to Improper Verification of Cryptographic Signature in versions 1.0.0 - 2.4.0.
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.