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] #185

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 4, 2024

Mend Renovate

This PR contains the following updates:

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

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!


Configuration

📅 Schedule: Branch creation - "" in timezone America/New_York, Automerge - "after 10pm every weekday,before 5am every weekday,every weekend" in timezone America/New_York.

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, 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.

@renovate renovate bot added the dependencies label Jun 4, 2024
@renovate renovate bot force-pushed the dep/npm-next-vulnerability branch from 76f389f to e3abe3c Compare June 4, 2024 13:10
@renovate renovate bot enabled auto-merge (rebase) June 4, 2024 13:10
auto-merge was automatically disabled June 4, 2024 13:11

Base branch requires signed commits

@renovate renovate bot force-pushed the dep/npm-next-vulnerability branch from e3abe3c to 15a3c08 Compare June 4, 2024 17:13
@renovate renovate bot enabled auto-merge (rebase) June 4, 2024 17:13
auto-merge was automatically disabled June 4, 2024 17:14

Base branch requires signed commits

@renovate renovate bot force-pushed the dep/npm-next-vulnerability branch from 15a3c08 to ba88edf Compare June 27, 2024 10:29
Copy link

socket-security bot commented Jun 27, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/babel-plugin-transform-vite-meta-env@1.0.3 Transitive: environment +8 4.53 MB osrg
npm/chalk@2.4.2 environment +4 75.3 kB sindresorhus
npm/class-transformer@0.5.1 None 0 776 kB typestack-release-bot
npm/class-validator@0.14.0 None +2 12.9 MB typestack-release-bot
npm/cross-env@7.0.3 environment Transitive: filesystem, shell +4 82.4 kB kentcdodds
npm/dotenv-cli@7.3.0 Transitive: environment, filesystem, shell +7 210 kB entropitor
npm/dotenv-defaults@5.0.2 Transitive: environment, filesystem +1 41 kB mrsteele
npm/dotenv-expand@11.0.2 None 0 23 kB motdotla
npm/dotenv-mono@1.3.12 environment, filesystem 0 61.2 kB marcocesarato
npm/eslint-config-airbnb-base-typescript-prettier@5.1.0 Transitive: environment, eval, filesystem, network, shell, unsafe +301 98.2 MB cxspxr
npm/eslint@8.54.0 environment, filesystem Transitive: eval, network, shell, unsafe +79 10 MB eslintbot
npm/eta@3.1.1 None 0 260 kB nebrelbug
npm/fast-xml-parser@4.3.2 None 0 107 kB amitgupta
npm/fastify-204@4.0.2 None 0 7.6 kB shiva127
npm/fastify-allow@2.0.0 None 0 28.3 kB mattbishop
npm/fastify-cli@6.0.1 environment Transitive: filesystem, unsafe +34 1.01 MB matteo.collina
npm/fastify-get-head@3.0.0 None +1 49.9 kB metcoder95
npm/fastify-impressions@1.0.5 None 0 8.98 kB manju4ever
npm/fastify-ip@1.0.0 None 0 24.8 kB metcoder95
npm/fastify-json5@1.0.0 None +2 260 kB eomm
npm/fastify-plugin@4.5.1 None 0 40.3 kB matteo.collina
npm/fastify-print-routes@3.0.0 None +1 29 kB shogun_panda
npm/fastify-qs@4.0.2 Transitive: eval +15 599 kB devium
npm/fastify-request-timing@3.0.0 None 0 2.65 kB pearofducks
npm/fastify-server-version@1.0.1 environment, filesystem, shell 0 15.9 kB amitosdev
npm/fastify-tls-keygen@1.1.0 filesystem, network +4 138 kB seb
npm/fastify-user-agent@1.0.1 None 0 8.48 kB eomm
npm/fastify-xml-body-parser@2.2.0 None 0 15.9 kB amitgupta
npm/fastify@4.24.3 Transitive: environment, eval, filesystem, unsafe +53 6.97 MB matteo.collina
npm/figlet@1.7.0 filesystem, network 0 6.07 MB patorjk
npm/fix-esm@1.0.1 filesystem, unsafe Transitive: environment, network +31 6.68 MB joepie91
npm/git-repo-info@2.1.1 filesystem 0 14.4 kB rwjblue
npm/ioredis@5.3.2 network +9 874 kB ioredis-robot
npm/is-docker@3.0.0 None 0 3.15 kB sindresorhus
npm/jest-mock@29.7.0 Transitive: environment, filesystem +15 766 kB simenb
npm/mocha@10.2.0 environment, eval, filesystem +36 3.81 MB juergba
npm/node-api-analytics@1.1.3 network +5 308 kB tomdraper
npm/node-dev@8.0.0 environment, shell Transitive: filesystem, network +15 6.11 MB bjornstar
npm/pino-pretty@10.2.3 environment Transitive: filesystem +32 1.76 MB jsumners
npm/prisma-json-schema-generator@5.1.1 filesystem Transitive: environment, eval, network, shell +12 8.87 MB valentinpalkovic
npm/prisma-redis-middleware@4.8.0 environment +4 783 kB asjas
npm/prisma@5.6.0 None +1 19.3 MB prismabot
npm/rate-limiter-flexible@5.0.0 None 0 141 kB animir
npm/redis-url-plus@1.1.0 None 0 5.95 kB zhoumq
npm/reflect-metadata@0.2.0 None 0 241 kB rbuckton
npm/rimraf@5.0.5 environment, filesystem Transitive: shell +23 3.36 MB isaacs
npm/source-map-support@0.5.21 filesystem +1 90.2 kB linusu

🚮 Removed packages: npm/commitlint-config-monorepo@2.0.2, npm/concurrently@8.2.2, npm/execa@8.0.1, npm/husky@9.0.6, npm/lint-staged@15.1.0, npm/npm-run-all2@6.1.2, npm/semantic-release-major-tag@0.3.2, npm/typescript@5.2.2

View full report↗︎

Copy link

socket-security bot commented Jun 27, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSourceCI
Install scripts npm/prisma@5.6.0
  • Install script: preinstall
  • Source: node scripts/preinstall-entry.js
🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/prisma@5.6.0

@renovate renovate bot force-pushed the dep/npm-next-vulnerability branch from ba88edf to 8be9bc6 Compare June 27, 2024 13:38
@BrycensRanch
Copy link
Owner

😡 no

Copy link
Contributor Author

renovate bot commented Jun 27, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 14.x releases. But if you manually upgrade to 14.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the dep/npm-next-vulnerability branch June 27, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant