jwcrypto is vulnerable to Improper Verification of Cryptographic Signature
31
Low Risk
jwcrypto verifies a JSON Web Signature against a JWKSet by looking up the signer's key using the kid header parameter. When a JWS carries multiple signatures, the verification path reads kid from the overall jose_header instead of each signature's own checked headers, so a signature that declares kid only in an unprotected header, or a non-first signature in a multi-signature JWS, can resolve against the wrong key from the set. This key-confusion is limited to specific and uncommon multi-signature or unprotected-header kid usage with a JWKSet. The fix reads kid from each signature's own checked headers before performing the key lookup.
You are affected if you are using a version that falls within the vulnerable range and you verify multi-signature JWS objects, or JWS signatures using an unprotected-header kid value, against a JWKSet.
jwcrypto is vulnerable to Improper Verification of Cryptographic Signature in versions 1.3 - 1.5.9.
Upgrade the jwcrypto 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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.