Skip to content
NOUMENResearch
Network
Engineering
, home page

IntelligenceFindingsNMN-2026-0061

jose vulnerable to resource exhaustion via specifically crafted JWE with compressed plaintext

CandidateMachine- or researcher-generated; not independently verified.

In short

What to know.

Package
jose npmjose: from 3.0.0 before 4.15.5. jose: before 2.0.7
What to do
Upgrade jose to 4.15.5 or later. Upgrade jose to 2.0.7 or later.
Severity
ModerateRated by the source advisory.
Confidence
HighThe affected range comes from the advisory; no system that uses the component has been assessed.

Verification

Where it stands.

  1. Candidate
  2. In review
  3. Reproduced
  4. Confirmed
  5. Resolved
  6. Disputed
  7. Withdrawn
Candidate Machine- or researcher-generated; not independently verified.

What each state means, and how a record moves between them.

11 listed

Sources

  1. OSV record GHSA-hhhv-q57g-882qosv.devRetrieved 3 December 2026
  2. web reference for GHSA-hhhv-q57g-882qgithub.comRetrieved 3 December 2026
  3. advisory reference for GHSA-hhhv-q57g-882qnvd.nist.govRetrieved 3 December 2026
  4. web reference for GHSA-hhhv-q57g-882qgithub.comRetrieved 3 December 2026
  5. web reference for GHSA-hhhv-q57g-882qgithub.comRetrieved 3 December 2026
  6. package reference for GHSA-hhhv-q57g-882qgithub.comRetrieved 3 December 2026
  7. web reference for GHSA-hhhv-q57g-882qlists.fedoraproject.orgRetrieved 3 December 2026
  8. web reference for GHSA-hhhv-q57g-882qlists.fedoraproject.orgRetrieved 3 December 2026
  9. web reference for GHSA-hhhv-q57g-882qlists.fedoraproject.orgRetrieved 3 December 2026
  10. web reference for GHSA-hhhv-q57g-882qlists.fedoraproject.orgRetrieved 3 December 2026
  11. web reference for GHSA-hhhv-q57g-882qlists.fedoraproject.orgRetrieved 3 December 2026

Full record

Finding
NMN-2026-0061
Category
vulnerability
Component
jose (npm)jose: from 3.0.0 before 4.15.5. jose: before 2.0.7
Severity
Moderate. Rated by the source advisory.Severity as labelled by the source advisory GHSA-hhhv-q57g-882q. CVSS as given: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. Noumen has not assessed it.
Confidence
High.The affected range comes from the advisory; no system that uses the component has been assessed.
State
Candidate. Machine- or researcher-generated; not independently verified.
Disclosure
Public
Mitigation
Upgrade jose to 4.15.5 or later. Upgrade jose to 2.0.7 or later.
Discovery method
imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
Reproduction
No reproduction steps recorded.
Affected systems
None listed. A link to a system needs its own evidence.
Attribution
Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
Assigned reviewer
Nobody yet
Dates
Created 3 December 2026, 16:49 UTCUpdated 3 December 2026, 16:49 UTC
Summary, as published by the source advisory
As published by the source advisory
A vulnerability has been identified in the JSON Web Encryption (JWE) decryption interfaces, specifically related to the [support for decompressing plaintext after its decryption](https://www.rfc-editor.org/rfc/rfc7516.html#section-4.1.3). This allows an adversary to exploit specific scenarios where the compression ratio becomes exceptionally high. As a result, the length of the JWE token, which is determined by the compressed content's size, can land below application-defined limits. In such cases, other existing application level mechanisms for preventing resource exhaustion may be rendered ineffective. Note that as per [RFC 8725](https://www.rfc-editor.org/rfc/rfc8725.html#name-avoid-compression-of-encryp) compression of data SHOULD NOT be done before encryption, because such compressed data often reveals information about the plaintext. For this reason the v5.x major version of `jose` removed support for compressed payloads entirely and is therefore NOT affected by this advisory. ### Impact Under certain conditions it is possible to have the user's environment consume unreasonable amount of CPU time or memory during JWE Decryption operations. ### Affected users The impact is limited only to Node.js users utilizing the JWE decryption APIs to decrypt JWEs from untrusted sources. You are NOT affected if any of the following applies to you - Your code uses jose version v5.x where JWE Compression is not supported anymore - Your code runs in an environment other than Node.js (e.g. Deno, CF Workers), which is the only runtime where JWE Compression is implemented out of the box - Your code does not use the JWE decryption APIs - Your code only accepts JWEs produced by trusted sources ### Patches `v2.0.7` and `v4.15.5` releases limit the decompression routine to only allow decompressing up to 250 kB of plaintext. In v4.x it is possible to further adjust this limit via the `inflateRaw` decryption option implementation. In v2.x it is possible to further adjust this limit via the `inflateRawSyncLimit` decryption option. ### Workarounds If you cannot upgrade and do not want to support compressed JWEs you may detect and reject these tokens early by checking the token's protected header ```js const { zip } = jose.decodeProtectedHeader(token) if (zip !== undefined) { throw new Error('JWE Compression is not supported') } ``` If you wish to continue supporting JWEs with compressed payloads in these legacy release lines you must upgrade (v1.x and v2.x to version v2.0.7, v3.x and v4.x to version v4.15.5) and review the limits put forth by the patched releases. ### For more information If you have any questions or comments about this advisory please open a discussion in the project's [repository](https://github.com/panva/jose/discussions/new?category=q-a&title=GHSA-hhhv-q57g-882q%20advisory%20question)

1 event, oldest first

History

History verified: 1 eventLatest hash7bdc0d0fc1fa7bdc0d0fc1fab71c57b03e3fde034bd692e9705f42c8bf38071e4576ddeac3f3

  1. Record createdMachine-generated

    By advisory-monitor@1.0.0 (agent, machine-generated)

    Reason: Imported from public advisory GHSA-hhhv-q57g-882q.

    Entered the record in the state Candidate.

    Event 1 hash7bdc0d0fc1fa7bdc0d0fc1fab71c57b03e3fde034bd692e9705f42c8bf38071e4576ddeac3f3
About this record

Severity and confidence are rated separately, each with its own reason.

History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.

Corrections keep the value before and after.