[Snyk] Upgrade next from 9.2.1 to 9.5.5 #860
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 was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade next from 9.2.1 to 9.5.5.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 284 versions ahead of your current version.
The recommended version was released 4 years ago, on 2020-10-10.
The recommended version fixes:
SNYK-JS-ACORN-559469
Why? CVSS 7.5
SNYK-JS-ACORN-559469
Why? CVSS 7.5
SNYK-JS-AJV-584908
Why? CVSS 7.5
SNYK-JS-BABELTRAVERSE-5962462
Why? CVSS 7.5
SNYK-JS-BABELTRAVERSE-5962462
Why? CVSS 7.5
SNYK-JS-AJV-584908
Why? CVSS 7.5
SNYK-JS-AJV-584908
Why? CVSS 7.5
SNYK-JS-ANSIHTML-1296849
Why? CVSS 7.5
SNYK-JS-LODASH-1040724
Why? CVSS 7.5
SNYK-JS-LODASH-567746
Why? CVSS 7.5
SNYK-JS-LODASH-608086
Why? CVSS 7.5
SNYK-JS-LODASH-6139239
Why? CVSS 7.5
SNYK-JS-LODASHTEMPLATE-1088054
Why? CVSS 7.5
SNYK-JS-SERIALIZEJAVASCRIPT-6056521
Why? CVSS 7.5
SNYK-JS-SERIALIZEJAVASCRIPT-536840
Why? CVSS 7.5
SNYK-JS-SERIALIZEJAVASCRIPT-570062
Why? CVSS 7.5
SNYK-JS-WEBPACKDEVMIDDLEWARE-6476555
Why? CVSS 7.5
SNYK-JS-SSRI-1246392
Why? CVSS 7.5
SNYK-JS-LODASH-1018905
Why? CVSS 7.5
SNYK-JS-NEXT-561584
Why? CVSS 7.5
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: next
Core Changes
Example Changes
Credits
Huge thanks to @ HaNdTriX, and @ jensmeindertsma for helping!
Core Changes
Core Changes
Example Changes
Credits
Huge thanks to @ HaNdTriX and @ jensmeindertsma for helping!
This upgrade is completely backwards compatible and recommended for all users on versions below 9.5.4. For future security related communications of our OSS projects, please join this mailing list.
A security team from one of our partners noticed an issue in Next.js that allowed for open redirects to occur.
Specially encoded paths could be used with the trailing slash redirect to allow an open redirect to occur to an external site.
In general, this redirect does not directly harm users although can allow for phishing attacks by redirecting to an attackers domain from a trusted domain.
We recommend upgrading to the latest version of Next.js to improve the overall security of your application.
How to Upgrade
npm install next@latest --save
Impact
next export
We recommend everyone to upgrade regardless of whether you can reproduce the issue or not.
How to Assess Impact
If you think users could have been affected, you can filter logs of affected sites by
%2F
with a 308 response.What is Being Done
As Next.js has grown in popularity, it has received the attention of security teams and auditors. We are thankful to those that reached out for their investigation and discovery of the original bug and subsequent responsible disclosure.
We've landed a patch that ensures encoding is handled properly for these types of redirects so the open redirect can no longer occur.
Regression tests for this attack were added to the security integration test suite.
Core Changes
next-head-count
: #16758[email protected]
: Invalid configuration: #17045Documentation Changes
favicon.ico
in static file serving docs.: #17540Example Changes
with-stitches
example: #16827Misc Changes
should
in test name: #17303Credits
Huge thanks to @ YichiZ, @ weichienhung,