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

chore(deps): update dependency next to v14 [security] #2880

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

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
next (source) ^13.5.6 -> ^14.0.0 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


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


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 these updates again.


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

This PR has been generated by Mend Renovate. View repository job log here.

Copy link

vercel bot commented May 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextra-theme-docs-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 2:03am
nextra-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2024 2:03am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
nextra ⬜️ Ignored (Inspect) May 10, 2024 2:03am

Copy link

changeset-bot bot commented May 10, 2024

⚠️ No Changeset found

Latest commit: e5c8bb2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

📦 Next.js Bundle Analysis for swr-site

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 191.91 KB (🟢 -6.9 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

One Hundred Eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/404 4.22 KB 196.13 KB 56.04% (🟢 -0.06%)
/500 4.22 KB 196.13 KB 56.04% (🟢 -0.06%)
/_error 183 B 192.09 KB 54.88% (+/- <0.01%)
/about/a-page.en-US 4.19 KB 196.1 KB 56.03% (🟢 -0.05%)
/about/acknowledgement.en-US 4.19 KB 196.1 KB 56.03% (🟢 -0.05%)
/about/changelog.en-US 4.86 KB 196.76 KB 56.22% (🟢 -0.06%)
/about/team.en-US 4.24 KB 196.15 KB 56.04% (🟢 -0.05%)
/blog.en-US 5.13 KB 197.04 KB 56.30% (🟢 -0.06%)
/blog.ru 5.13 KB 197.03 KB 56.30% (🟢 -0.06%)
/blog/swr-v1.en-US 9.79 KB 201.7 KB 57.63% (🟢 -0.06%)
/blog/swr-v1.ru 11.63 KB 203.54 KB 58.15% (🟢 -0.05%)
/docs/404-500.en-US 5.08 KB 196.99 KB 56.28% (🟢 -0.05%)
/docs/advanced.en-US 4.56 KB 196.47 KB 56.14% (🟢 -0.06%)
/docs/advanced/cache.en-US 16.29 KB 208.2 KB 59.49% (🟢 -0.06%)
/docs/advanced/cache.ru 17.58 KB 209.49 KB 59.85% (🟢 -0.06%)
/docs/advanced/code-highlighting.en-US 5.02 KB 196.93 KB 56.27% (🟢 -0.06%)
/docs/advanced/dynamic-markdown-import.en-US 6.48 KB 198.39 KB 56.68% (🟢 -0.07%)
/docs/advanced/file-name.with.DOTS.en-US 4.22 KB 196.13 KB 56.04% (🟢 -0.06%)
/docs/advanced/file-name.with.DOTS.es-ES 4.23 KB 196.14 KB 56.04% (🟢 -0.05%)
/docs/advanced/file-name.with.DOTS.ru 4.29 KB 196.2 KB 56.06% (🟢 -0.06%)
/docs/advanced/images.en-US 4.55 KB 196.46 KB 56.13% (🟢 -0.05%)
/docs/advanced/markdown-import.en-US 8.53 KB 200.43 KB 57.27% (🟢 -0.07%)
/docs/advanced/more/loooooooooooooooooooong-title.en-US 4.3 KB 196.21 KB 56.06% (🟢 -0.05%)
/docs/advanced/more/tree/one.en-US 4.24 KB 196.15 KB 56.04% (🟢 -0.05%)
/docs/advanced/more/tree/three.en-US 4.2 KB 196.1 KB 56.03% (🟢 -0.05%)
/docs/advanced/more/tree/two.en-US 4.25 KB 196.15 KB 56.04% (🟢 -0.05%)
/docs/advanced/performance.en-US 6.56 KB 198.47 KB 56.70% (🟢 -0.05%)
/docs/advanced/performance.es-ES 6.73 KB 198.64 KB 56.75% (🟢 -0.05%)
/docs/advanced/performance.ru 7.38 KB 199.29 KB 56.94% (🟢 -0.05%)
/docs/advanced/react-native.en-US 6.12 KB 198.02 KB 56.58% (🟢 -0.05%)
/docs/advanced/react-native.ru 6.71 KB 198.62 KB 56.75% (🟢 -0.05%)
/docs/advanced/scrollbar-x.en-US 5.34 KB 197.25 KB 56.36% (🟢 -0.06%)
/docs/arguments.en-US 5.52 KB 197.43 KB 56.41% (🟢 -0.06%)
/docs/arguments.es-ES 5.59 KB 197.5 KB 56.43% (🟢 -0.05%)
/docs/arguments.ru 5.87 KB 197.78 KB 56.51% (🟢 -0.06%)
/docs/callout.en-US 4.35 KB 196.26 KB 56.07% (🟢 -0.05%)
/docs/change-log.en-US 4.55 KB 196.46 KB 56.13% (🟢 -0.05%)
/docs/change-log.es-ES 10.04 KB 201.95 KB 57.70% (🟢 -0.08%)
/docs/change-log.ru 10.15 KB 202.06 KB 57.73% (🟢 -0.08%)
/docs/code-block-without-language.en-US 4.38 KB 196.29 KB 56.08% (🟢 -0.05%)
/docs/conditional-fetching.en-US 5.19 KB 197.1 KB 56.31% (🟢 -0.05%)
/docs/conditional-fetching.es-ES 5.25 KB 197.15 KB 56.33% (🟢 -0.05%)
/docs/conditional-fetching.ru 5.52 KB 197.42 KB 56.41% (🟢 -0.06%)
/docs/custom-header-ids.en-US 4.67 KB 196.58 KB 56.17% (🟢 -0.06%)
/docs/data-fetching.en-US 5.6 KB 197.51 KB 56.43% (🟢 -0.05%)
/docs/data-fetching.es-ES 5.64 KB 197.55 KB 56.44% (🟢 -0.05%)
/docs/data-fetching.ru 5.97 KB 197.88 KB 56.54% (🟢 -0.06%)
/docs/error-handling.en-US 6.41 KB 198.32 KB 56.66% (🟢 -0.05%)
/docs/error-handling.es-ES 6.55 KB 198.46 KB 56.70% (🟢 -0.05%)
/docs/error-handling.ru 7.16 KB 199.07 KB 56.88% (🟢 -0.06%)
/docs/getting-started.en-US 12.44 KB 204.34 KB 58.38% (🟢 -0.06%)
/docs/getting-started.es-ES 11.39 KB 203.3 KB 58.09% (🟢 -0.06%)
/docs/getting-started.ru 12.12 KB 204.03 KB 58.29% (🟢 -0.06%)
/docs/global-configuration.en-US 5.48 KB 197.38 KB 56.40% (🟢 -0.06%)
/docs/global-configuration.es-ES 5.53 KB 197.44 KB 56.41% (🟢 -0.05%)
/docs/global-configuration.ru 5.86 KB 197.76 KB 56.50% (🟢 -0.05%)
/docs/middleware.en-US 7.45 KB 199.36 KB 56.96% (🟢 -0.06%)
/docs/middleware.ru 8.32 KB 200.23 KB 57.21% (🟢 -0.06%)
/docs/mutation.en-US 6.98 KB 198.89 KB 56.83% (🟢 -0.06%)
/docs/mutation.es-ES 7.04 KB 198.95 KB 56.84% (🟢 -0.05%)
/docs/mutation.ru 7.79 KB 199.7 KB 57.06% (🟢 -0.06%)
/docs/options.en-US 6.02 KB 197.93 KB 56.55% (🟢 -0.05%)
/docs/options.es-ES 6.16 KB 198.07 KB 56.59% (🟢 -0.05%)
/docs/options.ru 6.84 KB 198.75 KB 56.78% (🟢 -0.05%)
/docs/pagination.en-US 16.4 KB 208.31 KB 59.52% (🟢 -0.07%)
/docs/pagination.es-ES 16.78 KB 208.69 KB 59.62% (🟢 -0.06%)
/docs/pagination.ru 17.76 KB 209.67 KB 59.91% (🟢 -0.07%)
/docs/prefetching.en-US 5.67 KB 197.58 KB 56.45% (🟢 -0.05%)
/docs/prefetching.es-ES 5.76 KB 197.67 KB 56.48% (🟢 -0.06%)
/docs/prefetching.ru 6.2 KB 198.11 KB 56.60% (🟢 -0.05%)
/docs/raw-layout.en-US 4.89 KB 196.79 KB 56.23% (🟢 -0.06%)
/docs/revalidation.en-US 10.69 KB 202.6 KB 57.89% (🟢 -0.09%)
/docs/revalidation.es-ES 10.83 KB 202.74 KB 57.93% (🟢 -0.09%)
/docs/revalidation.ru 11.47 KB 203.37 KB 58.11% (🟢 -0.09%)
/docs/suspense.en-US 5.7 KB 197.61 KB 56.46% (🟢 -0.05%)
/docs/suspense.es-ES 5.77 KB 197.67 KB 56.48% (🟢 -0.06%)
/docs/suspense.ru 6.16 KB 198.07 KB 56.59% (🟢 -0.05%)
/docs/typescript.en-US 5.99 KB 197.9 KB 56.54% (🟢 -0.05%)
/docs/understanding.en-US 11.79 KB 203.7 KB 58.20% (🟢 -0.09%)
/docs/understanding.es-ES 11.79 KB 203.7 KB 58.20% (🟢 -0.09%)
/docs/understanding.ru 11.79 KB 203.7 KB 58.20% (🟢 -0.09%)
/docs/with-nextjs.en-US 5.88 KB 197.79 KB 56.51% (🟢 -0.05%)
/docs/with-nextjs.es-ES 6 KB 197.91 KB 56.55% (🟢 -0.06%)
/docs/with-nextjs.ru 6.46 KB 198.37 KB 56.68% (🟢 -0.06%)
/docs/wrap-toc-items.en-US 5.03 KB 196.94 KB 56.27% (🟢 -0.05%)
/docs/wrap-toc-items.es-ES 5.03 KB 196.94 KB 56.27% (🟢 -0.06%)
/docs/wrap-toc-items.ru 5.03 KB 196.94 KB 56.27% (🟢 -0.06%)
/examples/auth.en-US 4.49 KB 196.4 KB 56.11% (🟢 -0.05%)
/examples/auth.es-ES 4.5 KB 196.4 KB 56.12% (🟢 -0.06%)
/examples/auth.ru 4.53 KB 196.43 KB 56.12% (🟢 -0.05%)
/examples/basic.en-US 4.49 KB 196.4 KB 56.11% (🟢 -0.05%)
/examples/basic.es-ES 4.49 KB 196.4 KB 56.11% (🟢 -0.05%)
/examples/basic.ru 4.54 KB 196.45 KB 56.13% (🟢 -0.06%)
/examples/error-handling.en-US 4.5 KB 196.41 KB 56.12% (🟢 -0.06%)
/examples/error-handling.es-ES 4.5 KB 196.41 KB 56.12% (🟢 -0.06%)
/examples/error-handling.ru 4.53 KB 196.44 KB 56.13% (🟢 -0.06%)
/examples/full.en-US 4.47 KB 196.38 KB 56.11% (🟢 -0.05%)
/examples/infinite-loading.en-US 4.51 KB 196.42 KB 56.12% (🟢 -0.05%)
/examples/infinite-loading.es-ES 4.51 KB 196.42 KB 56.12% (🟢 -0.05%)
/examples/infinite-loading.ru 4.56 KB 196.47 KB 56.13% (🟢 -0.05%)
/examples/ssr.en-US 4.5 KB 196.41 KB 56.12% (🟢 -0.06%)
/examples/ssr.ru 4.5 KB 196.41 KB 56.12% (🟢 -0.06%)
/foo.en-US 4.61 KB 196.52 KB 56.15% (🟢 -0.06%)
/index.en-US 8.2 KB 200.11 KB 57.17% (🟢 -0.06%)
/index.es-ES 7.87 KB 199.78 KB 57.08% (🟢 -0.06%)
/index.ru 8.3 KB 200.21 KB 57.20% (🟢 -0.05%)
/remote/graphql-yoga/_meta 236 B 192.14 KB 54.90% (+/- <0.01%)
/test.en-US 4.45 KB 196.36 KB 56.10% (🟢 -0.05%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

Copy link
Contributor

📦 Next.js Bundle Analysis for docs

This analysis was generated by the Next.js Bundle Analysis action. 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 193.95 KB (🟢 -6.89 KB)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Thirty-eight Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load
/ 46.18 KB (🟢 -2.13 KB) 240.13 KB
/404 4.11 KB (🟢 -169 B) 198.06 KB
/about 5.72 KB (🟢 -86 B) 199.67 KB
/docs 5.77 KB (🟢 -191 B) 199.72 KB
/docs/blog-theme 9.12 KB (🟢 -440 B) 203.06 KB
/docs/blog-theme/start 6.01 KB (🟢 -166 B) 199.96 KB
/docs/custom-theme 7.21 KB (🟢 -184 B) 201.16 KB
/docs/docs-theme 9.03 KB (🟢 -425 B) 202.97 KB
/docs/docs-theme/api/use-config 5.22 KB (🟢 -169 B) 199.17 KB
/docs/docs-theme/built-ins 9.03 KB (🟢 -426 B) 202.98 KB
/docs/docs-theme/built-ins/bleed 5.24 KB (🟢 -170 B) 199.18 KB
/docs/docs-theme/page-configuration 9.01 KB (🟢 -218 B) 202.96 KB
/docs/docs-theme/start 11.35 KB (🟢 -424 B) 205.3 KB
/docs/docs-theme/theme-configuration 14.72 KB (🟢 -214 B) 208.67 KB
/docs/guide 9.2 KB (🟢 -422 B) 203.14 KB
/docs/guide/advanced 9.05 KB (🟢 -426 B) 203 KB
/docs/guide/advanced/latex 6.13 KB (🟢 -168 B) 200.07 KB
/docs/guide/advanced/mermaid 80.42 KB (🟢 -2.91 KB) 274.37 KB
/docs/guide/advanced/npm2yarn 4.8 KB (🟢 -174 B) 198.75 KB
/docs/guide/advanced/remote 4.19 KB (🟢 -174 B) 198.13 KB
/docs/guide/advanced/table 7.11 KB (🟢 -176 B) 201.05 KB
/docs/guide/advanced/tailwind-css 4.8 KB (🟢 -171 B) 198.74 KB
/docs/guide/advanced/typescript 4.19 KB (🟢 -171 B) 198.14 KB
/docs/guide/built-ins 9.1 KB (🟢 -424 B) 203.05 KB
/docs/guide/built-ins/callout 5.31 KB (🟢 -172 B) 199.25 KB
/docs/guide/built-ins/cards 9.48 KB (🟢 -427 B) 203.43 KB
/docs/guide/built-ins/filetree 4.77 KB (🟢 -186 B) 198.71 KB
/docs/guide/built-ins/steps 4.75 KB (🟢 -170 B) 198.69 KB
/docs/guide/built-ins/tabs 5.03 KB (🟢 -186 B) 198.97 KB
/docs/guide/custom-css 4.95 KB (🟢 -171 B) 198.9 KB
/docs/guide/i18n 5.52 KB (🟢 -168 B) 199.47 KB
/docs/guide/image 5.45 KB (🟢 -87 B) 199.39 KB
/docs/guide/link 4.68 KB (🟢 -171 B) 198.63 KB
/docs/guide/markdown 11.03 KB (🟢 -435 B) 204.98 KB
/docs/guide/organize-files 11.04 KB (🟢 -440 B) 204.99 KB
/docs/guide/ssg 5.33 KB (🟢 -171 B) 199.28 KB
/docs/guide/syntax-highlighting 9.27 KB (🟢 -187 B) 203.22 KB
/showcase 10.51 KB (🟢 119 B) 204.45 KB
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by undefined% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

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.

None yet

0 participants