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
Related Issues
- Finance.js vulnerable to DoS via the IRR function’s depth parameter - CVE-2025-56571
- Mermaid improperly sanitizes sequence diagram labels leading to XSS - CVE-2025-54881
- Payload does not invalidate JWTs after log out (GHSA-5v66-m237-hwf7) - CVE-2025-4643
- Vite's server.fs.deny bypassed with /. for files under project root - CVE-2025-46565
- Tags:
- npm
- jose
Anything's wrong? Let us know Last updated on July 21, 2023