Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

fix(deps): update dependency next to v14 [security] #194

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 9, 2024

Mend Renovate

This PR contains the following updates:

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

GitHub Vulnerability Alerts

CVE-2023-46298

Next.js before 13.4.20-canary.13 lacks a cache-control header and thus empty prefetch responses may sometimes be cached by a CDN, causing a denial of service to all users requesting the same URL via that CDN. Cloudflare considers these requests cacheable assets.

CVE-2024-34350

Impact

Inconsistent interpretation of a crafted HTTP request meant that requests are treated as both a single request, and two separate requests by Next.js, leading to desynchronized responses. This led to a response queue poisoning vulnerability in the affected Next.js versions.

For a request to be exploitable, the affected route also had to be making use of the rewrites feature in Next.js.

Patches

The vulnerability is resolved in Next.js 13.5.1 and newer. This includes Next.js 14.x.

Workarounds

There are no official workarounds for this vulnerability. We recommend that you upgrade to a safe version.

References

https://portswigger.net/web-security/request-smuggling/advanced/response-queue-poisoning

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

v13.5.6

Compare Source

Core Changes
  • Upgrade edge-runtime/cookies #​57021
  • Patch React with fix for write-after-close for ReadableStream #​57011
Credits

Huge thanks to @​ijjk @​huozhi @​gnoff for helping!

v13.5.5

Compare Source

v13.5.4

Compare Source

Core Changes
  • chore: NextJS -> Next.js: #​55961
  • fix-failed-to-generate-self-signed-certificate issue:#​55891: #​55947
  • Remove .test.js from dist: #​55946
  • Turbopack next/font/google: don't insert css rules for multiple weights or styles: #​55852
  • Fix stale revalidate stream handling: #​55978
  • turbopack: improve turbopack/test stability: #​56024
  • Mark testmode fetches internal: #​56036
  • chore: Remove 'beta.' Subdomain from beta.nextjs.org Links: #​55924
  • Remove experimental.sharedPool: #​56021
  • fix(worker): pass env to build worker w/ config.experimental.workerThreads: #​55257
  • Update swc_core to v0.83.26: #​55780
  • Revert "Update swc_core to v0.83.26": #​56077
  • fix reporting of illegal segments when directory only contains irrelevant files: #​56076
  • Make permanentRedirect return 308 in route handlers: #​56065
  • Remove unneeded next-dev js in next-core: #​56039
  • Fix: Use boolean instead of false for experimental logging config: #​56110
  • chore: remove chalk in favor of picocolors: #​55992
  • Revert: "Generate prefetch RSC payload during build for SSR paths (#​54403)": #​56059
  • fetching logging on edge: #​56108
  • Optimize build trace handling: #​56048
  • Update font data: #​56121
  • feat(turbopack): port bloom filter to nexturbo: #​55678
  • Fixes performance problems due to TaskScopes: #​55721
  • perf: remove react dom legacy from app router: #​56082
  • perf: replace zod with superstruct: #​56083
  • perf: externalise ws for bundled server: #​56095
  • misc: refactor node utils: #​56096
  • Add support for skipTrailingSlashRedirect and skipMiddlewareUrlNormalize in Turbopack: #​56147
  • Add experimental.scrollRestoration for Turbopack: #​56150
  • misc: refactor handleExternals: #​56161
  • perf: add option to bundle pages externals: #​56162
  • Allow jest to run with use server directive: #​56148
  • Update experimental compile cache handling: #​56139
  • App render related code clean up: #​56178
  • Add support for i18n config in Turbopack: #​56182
  • Implement list of config options for Turbopack: #​56188
  • Turbopack: add support for an assetPrefix and basePath: #​56058
  • update turbopack: #​56197
  • Update supported options list to reflect #​56188: #​56200
  • Add support for experimental.logging.level in Turbopack: #​56201
  • Add next.config.js options to turbopack warning file: #​56207
  • fix: @​libsql/client build error: #​56192
  • chore: bump postcss: #​56225
  • Add additional handling for experimental-compile: #​56224
  • Drop ipc server headers filters: #​56226
  • only override NODE_EXTRA_CA_CERTS when using experimental https flag: #​56252
  • Pass same mangling option as terser to SWC minifier: #​56281
  • update turbopack: #​56285
  • clear require cache only when needed: #​56198
  • misc: enable source maps for bundled runtime: #​56289
  • misc: shortcut styled-jsx in external resolution: #​56291
  • Support serverRuntimeConfig and publicRuntimeConfig in Turbopack: #​56310
  • Reland static prefetches & fix prefetch bailout behavior: #​56228
  • fix(#​53190): add missing crossOrigin to assetsPrefix resources: #​56311
  • misc: fix instrumentation with bundled server: #​56318
  • fix(next/client): keep hash when navigating from app to pages router: #​56223
  • fix: support both decoded and encoded url requests of conventioned files : #​56187
  • fix: Invalid URL (404) provided on server actions error: #​56323
  • Revert "misc: shortcut styled-jsx in external resolution (#​56291)": #​56334
  • Fix build output logging order: #​56335
Documentation Changes
  • docs: add not-found to file conventions page: #​55944
  • Update 03-linking-and-navigating.mdx: #​55907
  • docs: Correct place for passing extension option to createMDX(): #​55967
  • docs-55629 update router cache column in cache interactions api table: #​55630
  • Update 03-linking-and-navigating.mdx: #​55969
  • Updates "Prerender Error" page for App Router: #​56044
  • Add the default import alias to create-next-app prompt for clarity: #​55896
  • Update revalidatePath.mdx to fix confusing wording of arguments section.: #​56099
  • docs: Renamed function that is used by other name: #​56170
  • (docs) Document Server Actions .bind method: #​56164
  • docs: Use Response.json over NextResponse.json: #​56173
  • correcting link to useSearchParams ref: #​56169
  • docs(sharp-missing-in-production.mdx): update standalone command: #​56191
  • docs(sharp-missing-in-production.mdx): update standalone command: #​56239
  • Update image.mdx: #​56269
  • Update image.mdx: #​56266
Example Changes
  • chore(examples): bump dependency versions: #​55899
  • Update to with-supertokens example app: #​56035
  • Update dependencies in examples : #​55993
  • Chore/update with supabase demo deploy button: #​52483
  • chore(examples): remove deprecated dependency from with-jest: #​56152
  • chore(examples): fix with-jest types: #​56193
  • (Examples) update Grafbase example: #​54705
  • fix: typo in with-stripe-typescript example: #​56274
Misc Changes
Credits

Huge thanks to @​balazsorban44, @​sdkdeepa, @​aayman997, @​mayank1513, @​timneutkens, @​2XG-DEV, @​eliot-akira, @​hi-matthew, @​riobits, @​wbinnssmith, @​ijjk, @​sokra, @​dvoytenko, @​rishabhpoddar, @​manovotny, @​A7med3bdulBaset, @​huozhi, @​jridgewell, @​joulev, @​SukkaW, @​kdy1, @​feedthejim, @​Fredkiss3, @​styfle, @​MildTomato, @​ForsakenHarmony, @​walfly, @​bzhn, @​shuding, @​boylett, @​Loki899899, @​devrsi0n, @​ImBIOS, @​vinaykulk621, @​ztanner, @​sdaigo, @​hamirmahal, @​blurrah, @​omarmciver, and @​alexBaizeau for helping!

v13.5.3

Compare Source

v13.5.2

Compare Source

Core Changes
Documentation Changes
  • create-next-app templates: Change bun run dev commands to bun dev: #​55603
  • docs: move optimizePackageImports to experimental: #​55614
  • fix(docs): internationalization middleware example: #​55645
Example Changes
  • fix: examples/with-fauna/package.json to reduce vulnerabilities: #​55594
  • fix: examples/with-grafbase/package.json to reduce vulnerabilities: #​55593
  • chore(examples): upgrade next-translate dependencies: #​55637
Misc Changes
  • chore: run repro validation only on bug reports: #​55610
  • Run unit tests in a separate job: #​55621
  • Run unit tests in a single job run: #​55625
Credits

Huge thanks to @​padmaia, @​mayank1513, @​jakeboone02, @​balazsorban44, @​kwonoj, @​huozhi, @​Yovach, @​ztanner, @​wyattjoh, @​GabenGar, @​timneutkens, and @​shuding for helping!

v13.5.1

Compare Source

Core Changes
  • Update font data: #​54257
  • add experimental https support to next dev: #​54016
  • Fix emotion-js transform for server components: #​54284
  • Handle basePath for redirect(): #​54277
  • Remove unused array in router-server: #​54278
  • app-router: tweak prefetch cache status heuristics: #​53864
  • Adds nonce to preinit scripts: #​54059
  • Fix default export of server action utility aliases: #​54254
  • fix: improve error message when output: export in app router: #​54202
  • ci(trace): allow to opt in to upload full trace: #​54347
  • fix: server actions blocking navigation events: #​54307
  • Skip getStaticPaths check for non-dynamic app routes: #​54351
  • OpenTel: ensure that exceptions are recorded on an active span: #​54131
  • Testmode: intercept rewrite fetches: #​54259
  • Polyfill Array.prototype.at: #​44436
  • Fix missing locale info for middleware data request: #​54357
  • fix: minimum node version 16.14.0: #​54331
  • Merge app renderer process: #​54143
  • Fix data route ordering in dev: #​54364
  • fix(app): enable React Strict Mode by default: #​53375
  • Fix swc compiling of client components when directive appears later than exports: #​54392
  • Upgrade vendored react: #​54399
  • Code clean up: #​54405
  • Upgrade precompiled ua-parser-js: #​54404
  • Fix compilation of next/dynamic with ssr: false in App Router: #​54411
  • refactor: Use swc AST to determine use client and server directives: #​54358
  • Fix not found css not being preloaded while navigation: #​53906
  • Optimize webpack memory cache garbage collection: #​54397
  • Use push for Server Action redirections: #​54458
  • Decreased watchpack aggregate timeout: #​54461
  • Generate prefetch RSC paylod during build for SSR paths: #​54403
  • remove HMR polling in favor of more targeted events: #​54406
  • Trace upload fixup: #​54455
  • fix: custom incremental cache handlers should work when transpiled: #​54472
  • upgrade Edge Runtime dependency: #​54489
  • fix infinite navigate events when Promise is proxied: #​54394
  • Implement named_import_transform: #​54530
  • fix resolve routes behavior when matching a dynamic segment: #​54539
  • Turbopack: add edge support for pages apis: #​54449
  • chore(eslint): bump ESLint plugins: #​54490
  • Skip copying signal field for revalidate: #​54533
  • Fix missing new line for certain logs: #​54442
  • update turbopack: #​54558
  • fix(DX): More precise error messages for export const config deprecation: #​54492
  • Revert "Decreased watchpack aggregate timeout": #​54515
  • Forms and mutations docs.: #​54314
  • optimize_barrel SWC transform and new optimizePackageImports config: #​54572
  • Reuse edgeConditionNames variable: #​54594
  • Update font data: #​54585
  • Add cleanup logic to worker.ts: #​54500
  • chore: add extra error info for rsc info helper: #​54609
  • Fix router CPU profiling: #​54497
  • Turbopack: add middleware support for next.rs api dev mode: #​54555
  • Rename hot-reloader to hot-reloader-webpack: #​54628
  • Implement hot-reloader interface: #​54629
  • Remove this as any cases: #​54642
  • Implement hot reloader interface for Turbopack: #​54632
  • Fix weight values above 900 not working with Google Fonts: #​54339
  • add support for app pages to next.rs api: #​54668
  • Remove unused cssnano-simple file: #​54658
  • File Reader Improvements: #​54645
  • Add new permanentRedirect function in App Router: #​54047
  • Default app router not found : #​54199
  • Cleanup of /_next/data handling in server: #​54689
  • Trace uploader: fix git binary on windows: #​54580
  • fix(next/image): import error preload is not exported from react-dom: #​54688
  • turbopack: should only create _not-found when path_prefix is root: #​54687
  • fix app routes: #​54701
  • refactor: share utils and optimize segments normalization: #​54611
  • Improve barrel optimizer with loader caching and wilcard exports: #​54695
  • Move getBabelConfigFile to separate file: #​54716
  • Reimplement getBabelConfigFile to be simpler: #​54741
  • Fix memory watcher reboot: #​54760
  • Misc Typescript updates: #​54734
  • Fix unexpected full hmr reload when editing _app: #​54690
  • update turbopack: #​54768
  • Use variable for common isNodeOrEdgeCompilation condition: #​54763
  • Turbopack: Implement HMR in next-api : #​54772
  • Add @visx/visx to the import optimization list: #​54778
  • Remove experimental.appDir as it's stable: #​54785
  • Short circut 404's for /favicon.ico in development: #​54747
  • Remove additional appDir checks: #​54788
  • Remove experimental.pageEnv: #​54789
  • Update list of Next.js options in next.rs: #​54798
  • Fixes for Turbopack HMR: #​54790
  • Fix the build manifest path for /: #​54744
  • Allow any number of onFetch handlers for a single test: #​54846
  • Update @​vercel/og to latest: #​54849
  • fix(turbopack): edge api entry path should not have /route suffix: #​54851
  • Don't send tracing spans if performance.measure doesn't return measurements: #​54808
  • Update tag handling for app cache: #​53321
  • Simplify getPagePaths logic: #​54908
  • Debug tracing: time devserver startup: #​54537
  • Update turbopack: #​54909
  • Add types for hot reloader send method: #​54932
  • Fix typo in hot-reloader: #​54944
  • Ensure that barrel files behind wildcards are transformed into shortpath: #​54951
  • Fix group routes custom root not-found: #​54931
  • fix: server actions firing twice after navigation: #​54948
  • docs: fix document format for next_private_export_map: #​54952
  • Unify serverError hmr event: #​54962
  • Add serverError action to list of HMR events: #​54964
  • fix(next-swc): skips client/server only checks when running with Jest to unblock testing: #​54891
  • Remove pong HMR event as it is not used: #​54965
  • Add turbopack-connected HMR event: #​54976
  • Redesign nextjs logging: #​54713
  • chore: bump undici: #​55007
  • chore: restore options to opt-in for server-side transpilation: #​55010
  • upgrade edge-runtime: #​55005
  • [functions-config-manifest] use correct extra config for pages router: #​54786
  • Client-side HMR message types: #​55009
  • perf: use split chunks for the node server: #​54988
  • Remove react-hot-toast from the optimizePackageImports list: #​55029
  • Experimental server optimization: #​54925
  • Fix duplicated dynamic metadata routes in dev mode: #​55026
  • Adjust optimizePackageImports: #​55040
  • server: enable minification by default: #​54960
  • webpack: tweak config for split chunks: #​55054
  • fix(perf): lazy load babel/code-frame: #​55024
  • remove --turbo, use --experimental-turbo as --turbo: #​55063
  • fix: skipTrailingSlashRedirect being ignored in pages: #​55067
  • Debug tracing: include session and anonymous ids: #​55021
  • Next SWC: Constrain Vc cell values with Send: #​55077
  • test(next-dev): migrate styled-jsx integration test: #​55079
  • perf: add bundled rendering runtimes: #​52997
  • chore: add structured app page path type: #​55070
  • Fixed i18n data route RegExp: #​55109
  • chore: upgrade to TypeScript 5.2.2: #​55105
  • fix: ensure mpa navigation render side effects are only fired once: #​55032
  • Revert "perf: add bundled rendering runtimes (#​52997)": #​55117
  • Strip internal routing headers: #​55114
  • Add option to support log full request url in verbose mode: #​55111
  • Filter out pages tree view for app dir only output: #​55120
  • Check for type of route handler returned value at build time (via the TS plugin) and at runtime: #​51394
  • Set test headers via page.router API: #​55087
  • server: re-land bundled runtimes: #​55139
  • feat(turbopack): add dynamic metadata support: #​54995
  • server: require hook hotfix : #​55146
  • Revert swc versions to one that doesn't use lightningcss: #​55148
  • feat: support expanding urls in nexturbo (and fix static files): #​55147
  • Update font data: #​55155
  • server: remove turbopack-specific code when compiling with webpack: #​55226
  • Ensure ImageResponse extends Response: #​55187
  • Remove render workers in favor of esm loader: #​54813
  • test(turbopack): migrate 404-related tests from next-dev: #​55243
  • feat: add reserved port validation: #​55237
  • build: fix externals resolution when importing from next/dist: #​55269
  • Make open editor icon size non-shrink in error overlay: #​55273
  • build: fix minimal trace caching: #​55279
  • reafactor: renamed pathname -> page: #​55282
  • feat(next-dev): reenable turbopack beta message: #​55116
  • Add libsql to external package list: #​55266
  • fix: removed unused intercepting route definition references: #​55285
  • refactor(next-font): use next-transform-font: #​55252
  • Remove unused option and unified ready message into start server: #​55289
  • remove --experimental-turbo from supported next-dev args: #​55300
  • test(next-dev): clean up 404 tests: #​55292
  • Use NextJsHotReloaderInterface in router-server: #​55317
  • server: switch pages to react dom edge renderer: #​55318
  • Logging improvements: #​55298
  • Updates Mozilla links to not include language preference: #​55326
  • fix react-server-dom-webpack cache invalidation: #​55287
  • docs: add explicit units to isrMemoryCacheSize option: #​55108
  • feat(turbopack): attach type metadata for static metadata item: #​55340
  • fix duplicated error logging when start server: #​55328
  • Revert react-server-dom require change: #​55345
  • fix turbopack HMR, fix disconnect detection: #​55361
  • Fix CPU profile generation: #​55365
  • fix memory leak in require.cache cleanup: #​55377
  • WEB-1135: Update examples and schema for Turbopack loaders config change: #​54584
  • feat(turbopack): support next.js specific node polyfills: #​55343
  • Turbopack: Allow Pages entrypoint template to import user's .ts files: #​55296
  • Revert "feat(turbopack): support next.js specific node polyfills": #​55385
  • Remove leftover worker code and types: #​55383
  • run validation logic for TURBOPACK too: #​55379
  • more turbopack HMR fixes and test case: #​55368
  • Revert "Revert react-server-dom require change": #​55382
  • Set standalone server default hostname to 0.0.0.0: #​54445
  • Revert "Revert "feat(turbopack): support next.js specific node polyfills"": #​55392
  • Update React from dd480ef to d6dcad6.: #​55399
  • Memoize serverDistDir generation: #​55375
  • Remove IncomingMessage type where unused: #​55387
  • Remove unused file: #​55378
  • Update useParams typing to assume a given shape: #​55126
  • Remove setLazyProp from the hot path of all requests: #​55391
  • fix: server actions initiated from static pages: #​51534
  • Turbopack: log hmr compile changes: #​55406
  • fix: server actions initiated from static pages: #​51534
  • Turbopack: log hmr compile changes: #​55406
  • Update turbopack: #​55402
  • fix: sort imports to ensure consistent hash: #​55358
  • fix manifest load errors when using assetPrefix: #​55416
  • Turbopack: remap next/head on client in App Pages: #​55419
  • Ensure etags are not generated for static files when disabled: #​55376
  • use atomic writes to avoid seeing incomplete files: #​55424
  • fix server-side changes events: #​55437
  • server: bundle vendored react: #​55362
  • fix: move sort to loader to also sort query string: #​55425
  • Don't log error about root_task_dispose: #​55458
  • Skip JSON.parse in loadClientReferenceManifest: #​55457
  • Restrict useFormState in Server Components: #​55417
  • Generate middlewareManifestPath only once: #​55489
  • Test Mode: report onFetch intercepti

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 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 has been generated by Mend Renovate. View repository job log here.

@auto-assign auto-assign bot requested a review from aorumbayev May 9, 2024 22:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant