# CVE-2022-36083: JOSE vulnerable to resource exhaustion via specifically crafted JWE

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.38% (percentile 72, 2026-11-26)
- **CWE:** CWE-400
- **Aliases:** GHSA-jv3g-j58f-9mq9
- **Published:** 2022-09-07T21:55:09.000Z
- **Modified:** 2026-06-22T03:10:06.180Z

## Who should check

- Projects that depend on npm package jose (\>= 1.0.0, \< 1.28.2)
- Projects that depend on npm package jose-browser-runtime (\>= 3.0.0, \< 3.20.4)
- Projects that depend on npm package jose-node-cjs-runtime (\>= 3.0.0, \< 3.20.4)
- Projects that depend on npm package jose-node-esm-runtime (\>= 3.0.0, \< 3.20.4)
- Anyone running panva jose \>= 1.0, \< 1.28.2; \>= 2.0, \< 2.0.6; \>= 3.0, \< 3.20.4; \>= 4.0, \< 4.9.2

## Description

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).

## Affected and fixed versions

- npm `jose`: affected \>= 1.0.0, \< 1.28.2; fixed 1.28.2, 2.0.6, 3.20.4, 4.9.2 (osv)
- npm `jose-browser-runtime`: affected \>= 3.0.0, \< 3.20.4; fixed 3.20.4, 4.9.2 (osv)
- npm `jose-node-cjs-runtime`: affected \>= 3.0.0, \< 3.20.4; fixed 3.20.4, 4.9.2 (osv)
- npm `jose-node-esm-runtime`: affected \>= 3.0.0, \< 3.20.4; fixed 3.20.4, 4.9.2 (osv)
- panva jose: \>= 1.0, \< 1.28.2; \>= 2.0, \< 2.0.6; \>= 3.0, \< 3.20.4; \>= 4.0, \< 4.9.2 (cvelist)

## Mitigation

- Upgrade jose to one of 1.28.2, 2.0.6, 3.20.4, 4.9.2 (or later in the same release line).
- Upgrade jose-browser-runtime to one of 3.20.4, 4.9.2 (or later in the same release line).
- Upgrade jose-node-cjs-runtime to one of 3.20.4, 4.9.2 (or later in the same release line).
- Upgrade jose-node-esm-runtime to one of 3.20.4, 4.9.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-36083. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-36083.md
Affected: jose >= 1.0.0, < 1.28.2; jose-browser-runtime >= 3.0.0, < 3.20.4; jose-node-cjs-runtime >= 3.0.0, < 3.20.4; jose-node-esm-runtime >= 3.0.0, < 3.20.4
Fixed in: 1.28.2, 2.0.6, 3.20.4, 4.9.2

Steps:
1. Search this machine and project for jose (npm), jose-browser-runtime (npm), jose-node-cjs-runtime (npm), jose-node-esm-runtime (npm), panva jose: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-36083 being exploited?

There is no confirmed exploitation: CVE-2022-36083 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.38% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-36083?

Medium: CVSS 5.3 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2022-36083?

jose \>= 1.0.0, \< 1.28.2; jose-browser-runtime \>= 3.0.0, \< 3.20.4; jose-node-cjs-runtime \>= 3.0.0, \< 3.20.4; jose-node-esm-runtime \>= 3.0.0, \< 3.20.4.

### Is there a fix for CVE-2022-36083?

Yes. Fixed in 1.28.2, 2.0.6, 3.20.4, 4.9.2. Upgrade jose to one of 1.28.2, 2.0.6, 3.20.4, 4.9.2 (or later in the same release line). Upgrade jose-browser-runtime to one of 3.20.4, 4.9.2 (or later in the same release line). Upgrade jose-node-cjs-runtime to one of 3.20.4, 4.9.2 (or later in the same release line). Upgrade jose-node-esm-runtime to one of 3.20.4, 4.9.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-36083?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/panva/jose/security/advisories/GHSA-jv3g-j58f-9mq9>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-36083>
- patch: <https://github.com/panva/jose/commit/03d6d013bf6e070e85adfe5731f526978e3e8e4d>
- other: <https://github.com/panva/jose/releases/tag/v4.9.2>
- other: <https://github.com/panva/jose>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-36083>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-jv3g-j58f-9mq9> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-36083> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-36083>
