cve.bz

CVE-2022-36083 panva jose: Excessive Iteration

5.3 mediumExploit referenceEPSS 1.6%Fix available

Medium (5.3) in panva jose. EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in jose 1.28.2, 2.0.6, 3.20.4.

On this page
JOSE is "JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno. 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. The purpose of this parameter is to intentionally slow down the key derivation function in order to make password brute-force and dictionary attacks more expensive. This makes the PBES2 algorithms unsuitable for situations where the JWE is coming from an untrusted source: an adversary can intentionally pick an extremely high PBES2 Count value, that will initiate a CPU-bound computation that may take an unreasonable amount of time to finish. Under certain conditions, it is possible to have the user's environment consume unreasonable amount of CPU time. The impact is limited only to users utilizing the JWE decryption APIs with symmetric secrets to decrypt JWEs from untrusted parties who do not limit the accepted JWE Key Management Algorithms (`alg` Header Parameter) using the `keyManagementAlgorithms` (or `algorithms` in v1.x) decryption option or through other means. The `v1.28.2`, `v2.0.6`, `v3.20.4`, and `v4.9.2` releases limit the maximum PBKDF2 iteration count to `10000` by default. It is possible to adjust this limit with a newly introduced `maxPBES2Count` decryption option. If users are unable to upgrade their required library version, they have two options depending on whether they expect to receive JWEs using any of the three PBKDF2-based JWE key management algorithms. They can use the `keyManagementAlgorithms` decryption option to disable accepting PBKDF2 altogether, or they can inspect the JOSE Header prior to using the decryption API and limit the PBKDF2 iteration count (`p2c` Header Parameter).

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS
1.6% (unchanged from 1.6% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 77th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-834 Excessive Iteration
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-36083 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-36083?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-36083?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-36083 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
panva:josefrom 1.0.0 before 1.28.2
panva:josefrom 2.0.0 before 2.0.6
panva:josefrom 3.0.0 before 3.20.4
panva:josefrom 4.0.0 before 4.9.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-jv3g-j58f-9mq9npmjose>=1.0.0 <1.28.21.28.2
GHSA-jv3g-j58f-9mq9npmjose-browser-runtime>=3.0.0 <3.20.43.20.4
GHSA-jv3g-j58f-9mq9npmjose-node-cjs-runtime>=3.0.0 <3.20.43.20.4
GHSA-jv3g-j58f-9mq9npmjose-node-esm-runtime>=3.0.0 <3.20.43.20.4
GHSA-jv3g-j58f-9mq9npmjose>=2.0.0 <2.0.62.0.6
GHSA-jv3g-j58f-9mq9npmjose>=3.0.0 <3.20.43.20.4
GHSA-jv3g-j58f-9mq9npmjose>=4.0.0 <4.9.24.9.2
GHSA-jv3g-j58f-9mq9npmjose-browser-runtime>=4.0.0 <4.9.24.9.2
GHSA-jv3g-j58f-9mq9npmjose-node-cjs-runtime>=4.0.0 <4.9.24.9.2
GHSA-jv3g-j58f-9mq9npmjose-node-esm-runtime>=4.0.0 <4.9.24.9.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-jose4.9.2-1DEBIAN-CVE-2022-36083
Ubuntu22.04:LTSnode-joseno fix listedUBUNTU-CVE-2022-36083
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 1 morejoseno fix listedUBUNTU-CVE-2022-36083

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON