jwcrypto is vulnerable to Denial of Service (DoS)
37
Low Risk
jwcrypto validates a JWK's key_ops list during import by checking each entry against every other entry for duplicates, and separately checks use/key_ops consistency with nested list scans. A JWK with a large or heavily duplicated key_ops array drives this validation into quadratic-time comparisons, so importing a single malformed key can consume disproportionate CPU. The fix replaces the nested duplicate check with a length bound and a set-based comparison, and matches use against key_ops with a single lookup table.
You are affected if you are using a version that falls within the vulnerable range.
jwcrypto is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.6.0.
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.