jwcrypto is vulnerable to Denial of Service (DoS)
37
CVE Score
Low
Denial of Service (DoS)
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.
Upgrade the jwcrypto library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 1.6.0
Fixed in 1.6.1jwcrypto is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.6.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.