Update dependency jose to v4 [SECURITY] #4345
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.7
->4.15.5
GitHub Vulnerability Alerts
CVE-2024-28176
A vulnerability has been identified in the JSON Web Encryption (JWE) decryption interfaces, specifically related to the support for decompressing plaintext after its decryption. 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 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
Patches
v2.0.7
andv4.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 theinflateRaw
decryption option implementation. In v2.x it is possible to further adjust this limit via theinflateRawSyncLimit
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
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
Release Notes
panva/jose (jose)
v4.15.5
Compare Source
Fixes
v4.15.4
Compare Source
Fixes
v4.15.3
Compare Source
v4.15.2
Compare Source
Fixes
v4.15.1
Compare Source
Fixes
v4.15.0
Compare Source
Features
v4.14.6
Compare Source
Fixes
v4.14.5
Compare Source
Refactor
v4.14.4
Compare Source
Refactor
v4.14.3
Compare Source
Reverts
v4.14.2
Compare Source
Fixes
v4.14.1
Compare Source
v4.14.0
Compare Source
Features
v4.13.2
Compare Source
Refactor
v4.13.1
Compare Source
Fixes
v4.13.0
Compare Source
Features
Fixes
v4.12.2
Compare Source
Fixes
v4.12.1
Compare Source
Refactor
v4.12.0
Compare Source
Features
v4.11.4
Compare Source
Fixes
v4.11.3
Compare Source
Fixes
v4.11.2
Compare Source
Refactor
v4.11.1
Compare Source
v4.11.0
Compare Source
Features
Fixes
v4.10.4
Compare Source
Fixes
v4.10.3
Compare Source
v4.10.2
Compare Source
v4.10.1
Compare Source
v4.10.0
Compare Source
Features
Fixes
v4.9.3
Compare Source
Refactor
v4.9.2
Compare Source
Fixes
v4.9.1
Compare Source
Fixes
v4.9.0
Compare Source
Features
Refactor
v4.8.3
Compare Source
v4.8.1
Compare Source
Fixes
v4.8.0
Compare Source
Features
v4.7.0
Compare Source
Features
v4.6.2
Compare Source
Fixes
v4.6.1
Compare Source
v4.6.0
Compare Source
Features
v4.5.3
Compare Source
Fixes
v4.5.2
Compare Source
Fixes
v4.5.1
Compare Source
Fixes
v4.5.0
Compare Source
Features
Fixes
v4.4.0
Compare Source
Features
v4.3.9
Compare Source
Fixes
v4.3.8
Compare Source
v4.3.7
Compare Source
Fixes
v4.3.6
Compare Source
Fixes
v4.3.5
Compare Source
Fixes
v4.3.4
Compare Source
Fixes
v4.3.3
Compare Source
Fixes
v4.3.2
Compare Source
Fixes
v4.3.0
Compare Source
Features
v4.2.1
Compare Source
Fixes
v4.2.0
Compare Source
Features
v4.1.5
Compare Source
Fixes
v4.1.4
Compare Source
Fixes
v4.1.3
Compare Source
Fixes
v4.1.2
Compare Source
Fixes
v4.1.1
Compare Source
Fixes
v4.1.0
Compare Source
Features
v4.0.4
Compare Source
Fixes
v4.0.3
Compare Source
Fixes
v4.0.2
Compare Source
Fixes
v4.0.1
Compare Source
Fixes
v4.0.0
Compare Source
⚠ BREAKING CHANGES
just "jose". For example,
import { jwtVerify } from 'jose/jwt/verify'
is now just
import { jwtVerify } from 'jose'
.removed in favour of just "jose" named exports.
jose/util/random
was removed.jose/jwk/thumbprint
named exportis renamed to
calculateJwkThumbprint
, nowimport { calculateJwkThumbprint } from 'jose'
jose/jwk/parse
module wasremoved, use
import { importJWK } from 'jose'
instead.jose/jwk/from_key_like
module wasremoved, use
import { exportJWK } from 'jose'
instead.Refactor
v3.20.4
Compare Source
Fixes
v3.20.3
Compare Source
Fixes
v3.20.2
Compare Source
Fixes
v3.20.1
Compare Source
Fixes
v3.20.0
Compare Source
Features
Fixes
v3.19.0
Compare Source
Features
v3.18.0
Compare Source
Features
v3.17.0
Compare Source
Features
Ed25519
(0967369)v3.16.1
Compare Source
Fixes
v3.16.0
Compare Source
Features
v3.15.5
Compare Source
Fixes
v3.15.4
Compare Source
Fixes
v3.15.3
Compare Source
Fixes
v3.15.2
Compare Source
v3.15.1
Compare Source
Fixes
v3.15.0
Compare Source
Features
Fixes
v3.14.4
Compare Source
Fixes
v3.14.3
Compare Source
Fixes
v3.14.2
Compare Source
Fixes
v3.14.1
Compare Source
Fixes
v3.14.0
Compare Source
Features
Fixes
v3.13.0
Compare Source
Features
v3.12.3
Compare Source
Fixes
v3.12.2
Compare Source
Performance
v3.12.1
Compare Source
Fixes
v3.12.0
Compare Source
Features
v3.11.6
Compare Source
Fixes
v3.11.5
Compare Source
Fixes
v3.11.4
Compare Source
Fixes
v3.11.3
Compare Source
Fixes
v3.11.2
Compare Source
Fixes
v3.11.1
Compare Source
Fixes
v3.11.0
Compare Source
Features
v3.10.0
Compare Source
Features
v3.9.0
Compare Source
Features
v3.8.0
Compare Source
Features
v3.7.1
Compare Source
Fixes
v3.7.0
Compare Source
Features
Fixes
v3.6.2
Compare Source
Fixes
v3.6.1
Compare Source
Fixes
v3.6.0
Compare Source
Features
v3.5.4
Compare Source
Fixes
v3.5.3
Compare Source
Fixes
v3.5.2
Compare Source
Performance
v3.5.1
Compare Source
Fixes
v3.5.0
Compare Source
Features
v3.4.0
Compare Source
Features
v3.3.2
Compare Source
Fixes
v3.3.1
Compare Source
Fixes
v3.3.0
Compare Source
Features
crit
header parameters (5163116), closes #123Fixes
v3.2.0
Compare Source
Features
v3.1.3
Compare Source
Fixes
v3.1.2
Compare Source
Fixes
v3.1.1
Compare Source
Fixes
v3.1.0
Compare Source
Features
v3.0.2
Compare Source
Fixes
v3.0.1
Compare Source
Fixes
v3.0.0
Compare Source
⚠ BREAKING CHANGES
Features
Configuration
📅 Schedule: Branch creation - "" in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.