Update vulnerable dependencies [SECURITY] #1729
Merged
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:
10.0.3
->13.0.1
8.5.1
->9.0.0
14.2.7
->14.2.10
^2.8.0
->^3.1.1
2.8.0
->3.1.1
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Improper Handling of Exceptional Conditions in Newtonsoft.Json
CVE-2024-21907 / GHSA-5crp-9r3c-p9vr
More information
Details
Newtonsoft.Json prior to version 13.0.1 is vulnerable to Insecure Defaults due to improper handling of expressions with high nesting level that lead to StackOverFlow exception or high CPU and RAM usage. Exploiting this vulnerability results in Denial Of Service (DoS).
The serialization and deserialization path have different properties regarding the issue.
Deserializing methods (like
JsonConvert.DeserializeObject
) will process the input that results in burning the CPU, allocating memory, and consuming a thread of execution. Quite high nesting level (>10kk, or 9.5MB of{a:{a:{...
input) is needed to achieve the latency over 10 seconds, depending on the hardware.Serializing methods (like
JsonConvert.Serialize
orJObject.ToString
) will throw StackOverFlow exception with the nesting level of around 20k.To mitigate the issue one either need to update Newtonsoft.Json to 13.0.1 or set
MaxDepth
parameter in theJsonSerializerSettings
. This can be done globally with the following statement. After that the parsing of the nested input will fail fast withNewtonsoft.Json.JsonReaderException
:Repro code:
Additional affected product and version information
The original statement about the problem only affecting IIS applications is misleading. Any application is affected, however the IIS has a behavior that stops restarting the instance after some time resulting in a harder-to-fix DoS.**
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
GitHub Vulnerability Alerts
CVE-2022-23540
Overview
In versions <=8.5.1 of jsonwebtoken library, lack of algorithm definition and a falsy secret or key in the
jwt.verify()
function can lead to signature validation bypass due to defaulting to thenone
algorithm for signature verification.Am I affected?
You will be affected if all the following are true in the
jwt.verify()
function:How do I fix it?
Update to version 9.0.0 which removes the default support for the none algorithm in the
jwt.verify()
method.Will the fix impact my users?
There will be no impact, if you update to version 9.0.0 and you don’t need to allow for the
none
algorithm. If you need 'none' algorithm, you have to explicitly specify that injwt.verify()
options.jsonwebtoken vulnerable to signature validation bypass due to insecure default algorithm in jwt.verify()
CVE-2022-23540 / GHSA-qwph-4952-7xr6
More information
Details
Overview
In versions <=8.5.1 of jsonwebtoken library, lack of algorithm definition and a falsy secret or key in the
jwt.verify()
function can lead to signature validation bypass due to defaulting to thenone
algorithm for signature verification.Am I affected?
You will be affected if all the following are true in the
jwt.verify()
function:How do I fix it?
Update to version 9.0.0 which removes the default support for the none algorithm in the
jwt.verify()
method.Will the fix impact my users?
There will be no impact, if you update to version 9.0.0 and you don’t need to allow for the
none
algorithm. If you need 'none' algorithm, you have to explicitly specify that injwt.verify()
options.Severity
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
References
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
jsonwebtoken's insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMAC
CVE-2022-23541 / GHSA-hjrf-2m68-5959
More information
Details
Overview
Versions
<=8.5.1
ofjsonwebtoken
library can be misconfigured so that passing a poorly implemented key retrieval function (referring to thesecretOrPublicKey
argument from the readme link) will result in incorrect verification of tokens. There is a possibility of using a different algorithm and key combination in verification than the one that was used to sign the tokens. Specifically, tokens signed with an asymmetric public key could be verified with a symmetric HS256 algorithm. This can lead to successful validation of forged tokens.Am I affected?
You will be affected if your application is supporting usage of both symmetric key and asymmetric key in jwt.verify() implementation with the same key retrieval function.
How do I fix it?
Update to version 9.0.0.
Will the fix impact my users?
There is no impact for end users
Severity
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
References
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
jsonwebtoken unrestricted key type could lead to legacy keys usage
CVE-2022-23539 / GHSA-8cf7-32gw-wr33
More information
Details
Overview
Versions
<=8.5.1
ofjsonwebtoken
library could be misconfigured so that legacy, insecure key types are used for signature verification. For example, DSA keys could be used with the RS256 algorithm.Am I affected?
You are affected if you are using an algorithm and a key type other than the combinations mentioned below
And for Elliptic Curve algorithms:
alg
How do I fix it?
Update to version 9.0.0. This version validates for asymmetric key type and algorithm combinations. Please refer to the above mentioned algorithm / key type combinations for the valid secure configuration. After updating to version 9.0.0, If you still intend to continue with signing or verifying tokens using invalid key type/algorithm value combinations, you’ll need to set the
allowInvalidAsymmetricKeyTypes
option totrue
in thesign()
and/orverify()
functions.Will the fix impact my users?
There will be no impact, if you update to version 9.0.0 and you already use a valid secure combination of key type and algorithm. Otherwise, use the
allowInvalidAsymmetricKeyTypes
option totrue
in thesign()
andverify()
functions to continue usage of invalid key type/algorithm combination in 9.0.0 for legacy compatibility.Severity
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
References
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Next.js Cache Poisoning
CVE-2024-46982 / GHSA-gp8f-8m3g-qvj9
More information
Details
Impact
By sending a crafted HTTP request, it is possible to poison the cache of a non-dynamic server-side rendered route in the pages router (this does not affect the app router). When this crafted request is sent it could coerce Next.js to cache a route that is meant to not be cached and send a
Cache-Control: s-maxage=1, stale-while-revalidate
header which some upstream CDNs may cache as well.To be potentially affected all of the following must apply:
pages/dashboard.tsx
notpages/blog/[slug].tsx
The below configurations are unaffected:
Patches
This vulnerability was resolved in Next.js v13.5.7, v14.2.10, and later. We recommend upgrading regardless of whether you can reproduce the issue or not.
Workarounds
There are no official or recommended workarounds for this issue, we recommend that users patch to a safe version.
Credits
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Node-Redis potential exponential regex in monitor mode
CVE-2021-29469 / GHSA-35q2-47q7-3pc3
More information
Details
Impact
When a client is in monitoring mode, the regex begin used to detected monitor messages could cause exponential backtracking on some strings. This issue could lead to a denial of service.
Patches
The problem was fixed in commit
2d11b6d
and was released in version3.1.1
.References
#1569 (GHSL-2021-026)
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
CVE-2021-29469
Impact
When a client is in monitoring mode, the regex begin used to detected monitor messages could cause exponential backtracking on some strings. This issue could lead to a denial of service.
Patches
The problem was fixed in commit
2d11b6d
and was released in version3.1.1
.References
#1569 (GHSL-2021-026)
Release Notes
JamesNK/Newtonsoft.Json (Newtonsoft.Json)
v13.0.1
Compare Source
v12.0.3
Compare Source
v12.0.2
Compare Source
v12.0.1
Compare Source
v11.0.2
Compare Source
v11.0.1
Compare Source
auth0/node-jsonwebtoken (jsonwebtoken)
v9.0.0
Compare Source
Breaking changes: See Migration from v8 to v9
Breaking changes
8345030
]auth0/node-jsonwebtoken@8345030)ecdf6cc
]auth0/node-jsonwebtoken@ecdf6cc)Security fixes
Arbitrary File Write via verify function
- CVE-2022-23529Insecure default algorithm in jwt.verify() could lead to signature validation bypass
- CVE-2022-23540Insecure implementation of key retrieval function could lead to Forgeable Public/Private Tokens from RSA to HMAC
- CVE-2022-23541Unrestricted key type could lead to legacy keys usage
- CVE-2022-23539vercel/next.js (next)
v14.2.10
Compare Source
Core Changes
Credits
Huge thanks to @huozhi and @ijjk for helping!
v14.2.9
Compare Source
Core Changes
Credits
Huge thanks to @huozhi, @ztanner, @ijjk, and @lubieowoce for helping!
v14.2.8
Compare Source
What's Changed
Support
esmExternals
in app directoryReading cookies set in middleware in components and actions
Metadata and icons
fb:app_id
,fb:admins
) in generateMetaData (#65713)Parallel routes fixes
Draft mode and edge improvements
next/image
fixesServer actions improvements
Other changes
Create-next-app updates
create-next-app
template CSS (#66043)create-next-app
public/ assets from local folder→ remote URL (#66931)Full Changelog: vercel/next.js@v14.2.7...v14.2.8
Huge thanks to everyone who contributed to this release:
@abhi12299, @delbaoliveira, @eps1lon, @ForsakenHarmony, @huozhi, @ijjk, @JoshuaKGoldberg, @leerob, @lubieowoce, @Netail, @ronanru, @samcx, @shuding, @sokra, @stylessh, @timfuhrmann, @wbinnssmith, @wyattjoh, @ypessoa, @ztanner
redis/node-redis (redis)
v3.1.1
Compare Source
Enhancements
Fixes
v3.1.0
Compare Source
Enhancements
auth pass [user]
v3.0.2
Compare Source
v3.0.1
Compare Source
v3.0.0
Compare Source
This version is mainly a release to distribute all the unreleased changes on master since 2017 and additionally removes
a lot of old deprecated features and old internals in preparation for an upcoming modernization refactor (v4).
Breaking Changes
hiredis
(no longer required)drain
eventidle
eventparser
optionmax_delay
optionmax_attempts
optionsocket_no_delay
optionBug Fixes
Features
redis-commands
packageredis-parser
package, v3.0.0, which brings performance improvementsdouble-ended-queue
withdenque
, which brings performance improvementssocket_initial_delay
option forsocket.setKeepAlive
(#1396)rediss
protocol in url (#1282)Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - "before 4am on Monday" (UTC).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.