Vulnerability library
Security checkJuly 21, 2023

JOSE vulnerable to resource exhaustion via specifically crafted JWE

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmjose

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The PBKDF2-based JWE key management algorithms expect a JOSE Header Parameter named p2c (PBES2 Count), which determines how many PBKDF2 iterations must be executed in order to derive a CEK wrapping key.

Recommendation

Update the jose package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 4.0.0, <= 4.9.1 >= 3.0.0, <= 3.20.3 >= 2.0.0, <= 2.0.5 >= 1.0.0, <= 1.28.1**
  • Patched version(s): **4.9.2 3.20.4 2.0.6 1.28.2**

References

Could your website be exposed too?

SmartScanner can check your website for JOSE vulnerable to resource exhaustion via specifically crafted JWE and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated July 21, 2023