use-custom-hook
use-custom-hook copied to clipboard
🚨 [security] Upgrade next: 11.1.3 → 12.1.0 (major)
🚨 Your current dependencies have known security vulnerabilities 🚨
This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!
Here is everything you need to know about this upgrade. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ next (11.1.3 → 12.1.0) · Repo
Security Advisories 🚨
🚨 Improper CSP in Image Optimization API for Next.js versions between 10.0.0 and 12.1.0
Impact
- Affected: All of the following must be true to be affected
- Next.js between version 10.0.0 and 12.0.10
- The
next.config.jsfile has images.domains array assigned- The image host assigned in images.domains allows user-provided SVG
- Not affected: The
next.config.jsfile has images.loader assigned to something other than defaultPatches
Workarounds
Change
next.config.jsto use a different loader configuration other than the default, for example:module.exports = { images: { loader: 'imgix', path: 'https://example.com/myaccount/', }, }Or if you want to use the
loaderprop on the component, you can usecustom:module.exports = { images: { loader: 'custom', }, }
🚨 DOS Vulnerability for self-hosted next.js apps using i18n
Impact
Vulnerable code could allow a bad actor to trigger a denial of service attack for anyone running a Next.js app at version >= 12.0.0, and using i18n functionality.
- Affected: All of the following must be true to be affected by this CVE
- Next.js versions above v12.0.0
- Using next start or a custom server
- Using the built-in i18n support
- Not affected:
- Deployments on Vercel (vercel.com) are not affected along with similar environments where invalid requests are filtered before reaching Next.js.
Patches
A patch has been released,
[email protected], that mitigates this issue. We recommend all affected users upgrade as soon as possible.Workarounds
We recommend upgrading whether you can reproduce or not although you can ensure
/${locale}/_next/is blocked from reaching the Next.js instance until you upgrade.For more information
If you have any questions or comments about this advisory:
- Open an issue in next
- Email us at [email protected]
🚨 Unexpected server crash in Next.js
Next.js is a React framework. In versions of Next.js prior to 12.0.5 or 11.1.3, invalid or malformed URLs could lead to a server crash. In order to be affected by this issue, the deployment must use Next.js versions above 11.1.0 and below 12.0.5, Node.js above 15.0.0, and next start or a custom server. Deployments on Vercel are not affected, along with similar environments where invalid requests are filtered before reaching Next.js. Versions 12.0.5 and 11.1.3 contain patches for this issue.
Release Notes
12.0.10
More info than we can show here.
12.0.9
More info than we can show here.
12.0.8
More info than we can show here.
12.0.7
More info than we can show here.
12.0.6
More info than we can show here.
12.0.5
More info than we can show here.
12.0.4
More info than we can show here.
12.0.3
More info than we can show here.
12.0.2
More info than we can show here.
12.0.1
More info than we can show here.
12.0.0
More info than we can show here.
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu recreate
- Recreates this PR, overwriting any edits that you've made to it
- @depfu merge
- Merges this PR once your tests are passing and conflicts are resolved
- @depfu close
- Closes this PR and deletes the branch
- @depfu reopen
- Restores the branch and reopens this PR (if it's closed)
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)