Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-36083

MEDIUM 5.3EPSS 72%

JOSE vulnerable to resource exhaustion via specifically crafted JWE

Also known as GHSA-jv3g-j58f-9mq9

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

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.3 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 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
EPSS
1.38% chance of exploitation in 30 days (percentile 72, 2026-11-26)
CWE
CWE-400
Published
Modified

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

Package / productAffectedFixedSource
npm jose>= 1.0.0, < 1.28.21.28.2, 2.0.6, 3.20.4, 4.9.2osv
npm jose-browser-runtime>= 3.0.0, < 3.20.43.20.4, 4.9.2osv
npm jose-node-cjs-runtime>= 3.0.0, < 3.20.43.20.4, 4.9.2osv
npm jose-node-esm-runtime>= 3.0.0, < 3.20.43.20.4, 4.9.2osv
panva jose>= 1.0, < 1.28.2; >= 2.0, < 2.0.6; >= 3.0, < 3.20.4; >= 4.0, < 4.9.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors