jose vulnerable to resource exhaustion via specifically crafted JWE with compressed plaintext
panva jose
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| jose npm |
|
|
| jose-node-cjs-runtime npm |
|
|
panva jose
| Product | Affected | Fixed in |
|---|---|---|
| jose npm |
|
|
| jose-node-cjs-runtime npm |
|
|
| jose-node-esm-runtime npm |
|
|
jose is JavaScript module for JSON Object Signing and Encryption, providing support for JSON Web Tokens (JWT), JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), JSON Web Key Set (JWKS), and more. A vulnerability has been identified in the JSON Web Encryption (JWE) decryption interfaces, specifically related to the support for decompressing plaintext after its decryption. Under certain conditions it is possible to have the user's environment consume unreasonable amount of CPU time or memory during JWE Decryption operations. This issue has been patched in versions 2.0.7 and 4.15.5.
From the CVE record · GitHub_M
The JWE decryption interfaces in jose can consume unreasonable CPU time or memory when decompressing plaintext after decryption. This can exhaust resources under certain conditions; the input does not specify whether an attacker needs network access, authentication, or user interaction.
Engineers using npm jose versions >=3.0.0 <4.15.5 or <2.0.7, or jose-node-cjs-runtime or jose-node-esm-runtime versions <4.15.5, should check their installations.