jwcrypto is vulnerable to Denial of Service (DoS)
53
Medium Risk
jwcrypto's compact token deserialization splits the input string on the . delimiter before validating the token length or segment count. A crafted JWE or JWS string containing lots of period delimiters forces the parser to allocate a very large list of segments before the structure check runs. Parsing such input can exhaust process memory and raise a MemoryError, degrading availability for services that deserialize externally supplied tokens. The fix bounds the number of splits performed during compact JWE and JWS parsing so malformed tokens are rejected without excessive allocation.
You are affected if you are using a version that falls within the vulnerable range and you pass externally supplied or untrusted JWE or JWS tokens to the library's deserialization functions.
jwcrypto is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.5.8.
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.