-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update dependency jose to v4.15.5 [SECURITY] #74
Open
renovate
wants to merge
1
commit into
deps
Choose a base branch
from
renovate/npm-jose-vulnerability
base: deps
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
renovate
bot
force-pushed
the
renovate/npm-jose-vulnerability
branch
from
March 7, 2024 21:18
e5a1bc0
to
a60f39b
Compare
renovate
bot
changed the title
Update dependency jose to v4.9.2 [SECURITY]
Update dependency jose to v4.15.5 [SECURITY]
Mar 7, 2024
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: pnpm-lock.yaml
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
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:
4.5.1
->4.15.5
GitHub Vulnerability Alerts
CVE-2022-36083
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.
Impact
Under certain conditions (see below) it is possible to have the user's environment consume unreasonable amount of CPU time.
Affected users
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 thekeyManagementAlgorithms
(oralgorithms
in v1.x) decryption option or through other means.The PBKDF2-based JWE Key Management Algorithm Identifiers are
PBES2-HS256+A128KW
PBES2-HS384+A192KW
PBES2-HS512+A256KW
e.g.
You are NOT affected if any of the following applies to you
keyManagementAlgorithms
decryption option not including any of the PBKDF2-based JWE key management algorithmsPatches
v1.28.2
,v2.0.6
,v3.20.4
, andv4.9.2
releases limit the maximum PBKDF2 iteration count to10000
by default. It is possible to adjust this limit with a newly introducedmaxPBES2Count
decryption option.Workarounds
All users should be able to upgrade given all stable semver major release lines have had new a patch release introduced which limits the PBKDF2 iteration count to
10000
by default. This removes the ability to craft JWEs that would consume unreasonable amount of CPU time.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.
keyManagementAlgorithms
decryption option to disable accepting PBKDF2 altogetherp2c
Header Parameter)For more information
If you have any questions or comments about this advisory:
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
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.