Skip to content
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 next to v14 [SECURITY] #714

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 10, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
next (source) 13.5.6 -> 14.1.1 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2024-34351

Impact

A Server-Side Request Forgery (SSRF) vulnerability was identified in Next.js Server Actions by security researchers at Assetnote. If the Host header is modified, and the below conditions are also met, an attacker may be able to make requests that appear to be originating from the Next.js application server itself.

Prerequisites

  • Next.js (<14.1.1) is running in a self-hosted* manner.
  • The Next.js application makes use of Server Actions.
  • The Server Action performs a redirect to a relative path which starts with a /.

* Many hosting providers (including Vercel) route requests based on the Host header, so we do not believe that this vulnerability affects any Next.js applications where routing is done in this manner.

Patches

This vulnerability was patched in #​62561 and fixed in Next.js 14.1.1.

Workarounds

There are no official workarounds for this vulnerability. We recommend upgrading to Next.js 14.1.1.

Credit

Vercel and the Next.js team thank Assetnote for responsibly disclosing this issue to us, and for working with us to verify the fix. Thanks to:

Adam Kues - Assetnote
Shubham Shah - Assetnote

CVE-2024-46982

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:

  • Next.js between 13.5.1 and 14.2.9
  • Using pages router
  • Using non-dynamic server-side rendered routes e.g. pages/dashboard.tsx not pages/blog/[slug].tsx

The below configurations are unaffected:

  • Deployments using only app router
  • Deployments on Vercel are not affected

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

  • Allam Rachid (zhero_)
  • Henry Chen

Release Notes

vercel/next.js (next)

v14.1.1

Compare Source

Note: this is a backport release for critical bug fixes -- this does not include all pending features/changes on canary

Core Changes
Credits

Huge thanks to @​huozhi, @​shuding, @​Ethan-Arrowood, @​styfle, @​ijjk, @​ztanner, @​balazsorban44, @​kdy1, and @​williamli for helping!

v14.1.0

Compare Source

v14.0.4

Compare Source

v14.0.3

Compare Source

v14.0.2

Compare Source

v14.0.1

Compare Source

Core Changes
  • Add Next.js 14 codemods to CLI output.: #​57552
  • OpenTelemetry: propagate a configured context(s) to root requests: #​57084
  • debug: Add tags to next build traces to track build configuration in the .next/trace file: #​56965
  • [Traces] Await the flush of the trace write stream to make sure trace file is written: #​57641
  • Add node-pty to externals list: #​57640
  • fix: move logging config validation out of experimental: #​57530
  • Update font data: #​57728
  • Support viewport export via TS Plugin: #​57554
  • Fix: Build compilation warning when using middleware: #​57685
  • chore: Update flight-client-entry-plugin.ts typo: #​57734
  • Improve error for missing default export in dynamic metadata routes: #​57711
  • fix gsp tracing issue: #​57766
  • fix(turbopack): don't match empty route groups: #​57647
  • Update React from 8c8ee9e to 0c63487 and types: #​57772
Documentation Changes
  • Add missing dot in codemod command: #​57536
  • docs(fix): example text unescaped entities: #​57255
  • doc: Clarify built-in support for sass after installation: #​57279
  • Update docs with a Good to know box about using redirect in client components: #​56966
  • docs: fix 02-dynamic-routes.mdx: #​57029
  • Fix incorrect link in GTM docs: #​57547
  • Fix typos: #​57592
  • Add apostrophe 07-error-handling.mdx: #​57626
  • Fix: codemods.mdx Incorrect heading structure of next-og-import, meta…: #​57605
  • Typo fix, version "13" to "14": #​57723
  • Fix Google Tag Manager URL in Third Party Libraries documentation: #​57731
Example Changes
Misc Changes
  • update manifest: #​57523
  • update next/third-parties to use Next 14 or 13 as a peer dependency, instead of just 13: #​57515
  • Modify tailwindcss related dependency of create-next-app: #​57262
  • Remove extra CI step and lock Node.js version: #​57769
Credits

Huge thanks to @​dijonmusters, @​sokra, @​philwolstenholme, @​IgorKowalczyk, @​housseindjirdeh, @​Zoe-Bot, @​HanCiHu, @​JackHowa, @​goncy, @​hirotomoyamada, @​pveyes, @​yeskunall, @​vinaykulk621, @​ChendayUP, @​leerob, @​dvoytenko, @​mknichel, @​ijjk, @​hmaesta, @​ajz003, @​its-kunal, @​joelhooks, @​blurrah, @​tariknh, @​Vinlock, @​Nayeem-XTREME, @​aziyatali, @​aspehler, @​huozhi, @​ztanner, @​ForsakenHarmony, @​moka-ayumu, and @​gnoff for helping!

v14.0.0

Compare Source

v13.5.7

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

cloudflare-workers-and-pages bot commented May 10, 2024

Deploying roykung-com with  Cloudflare Pages  Cloudflare Pages

Latest commit: 530cdf8
Status:🚫  Build failed.

View logs

@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 2 times, most recently from 11c61e0 to 84fa9a0 Compare May 14, 2024 15:07
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 3 times, most recently from 6c8a49e to 387300e Compare May 29, 2024 22:40
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 6 times, most recently from 95f31bf to eb733c4 Compare June 5, 2024 12:45
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 2 times, most recently from 503c317 to 84dfcbe Compare June 18, 2024 04:26
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 6 times, most recently from 46e27ce to 7d3bb0f Compare June 22, 2024 15:34
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 3 times, most recently from 89b1615 to 071a84c Compare July 1, 2024 22:36
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 2 times, most recently from d510a72 to a50096b Compare July 8, 2024 22:00
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 2 times, most recently from 87c7f80 to 5498d24 Compare July 16, 2024 22:43
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 3 times, most recently from 280ace5 to ac4b854 Compare July 24, 2024 15:45
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from b4e4a25 to c7113c7 Compare August 2, 2024 12:15
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 2 times, most recently from b9138fa to 8b11219 Compare August 16, 2024 21:56
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 4 times, most recently from 36dc8a4 to eee5aed Compare August 21, 2024 21:50
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 4 times, most recently from b82ae77 to 4ac17c1 Compare September 2, 2024 00:24
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 3 times, most recently from 3d05336 to a029557 Compare September 9, 2024 21:51
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 3 times, most recently from 368fe28 to b81d478 Compare September 19, 2024 22:49
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 7 times, most recently from 853a31e to b7c5a51 Compare September 28, 2024 00:28
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 4 times, most recently from c3fe00a to fe52f8b Compare October 9, 2024 03:35
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from fe52f8b to 530cdf8 Compare October 11, 2024 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants