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

fix(deps): update dependency next [security] #5538

Closed
wants to merge 1 commit into 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) 14.2.4 -> 14.2.10 age adoption passing confidence
next (source) ^13.5.4 -> ^14.0.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

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

CVE-2024-47831

Impact

The image optimization feature of Next.js contained a vulnerability which allowed for a potential Denial of Service (DoS) condition which could lead to excessive CPU consumption.

Not affected:

  • The next.config.js file is configured with images.unoptimized set to true or images.loader set to a non-default value.
  • The Next.js application is hosted on Vercel.

Patches

This issue was fully patched in Next.js 14.2.7. We recommend that users upgrade to at least this version.

Workarounds

Ensure that the next.config.js file has either images.unoptimized, images.loader or images.loaderFile assigned.

Credits

Brandon Dahler (brandondahler), AWS
Dimitrios Vlastaras


Release Notes

vercel/next.js (next)

v14.2.10

Compare Source

v14.2.9

Compare Source

v14.2.8

Compare Source

v14.2.7

Compare Source

v14.2.6

Compare Source

v14.2.5

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 is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • 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

netlify bot commented May 10, 2024

Deploy Preview for dev-web-novu canceled.

Name Link
🔨 Latest commit 1d39e9e
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/66855aa26d67fb0008bd3dad

Copy link

netlify bot commented May 10, 2024

Deploy Preview for novu-design canceled.

Name Link
🔨 Latest commit 1d39e9e
🔍 Latest deploy log https://app.netlify.com/sites/novu-design/deploys/66855aa26d67fb0008bd3db1

@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from d73e6e0 to f802390 Compare May 20, 2024 14:01
Copy link

github-actions bot commented May 20, 2024

Hey there and thank you for opening this pull request! 👋

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Your PR title is: fix(deps): update dependency next [security]
It should be something like: feat(scope): Add fancy new feature

Details:

Unknown scope "deps" found in pull request title "fix(deps): update dependency next [security]". Scope must match one of: root, api, dashboard, inbound-mail, web, webhook, widget, worker, ws, ee-auth, ee-billing, ee-dal, ee-shared-services, ee-translation, application-generic, automation, dal, design-system, embed, notifications, novui, testing, client, framework, headless, js, nest, nextjs, node, notification-center, novu, providers, react, react-native, shared, stateless, nestjs, nextjs.

Copy link

Hey there and thank you for opening this pull request! 👋

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Your PR title is: chore(deps): update dependency next to v14 [security]
It should be something like: feat(scope): Add fancy new feature

Details:

Unknown scope "deps" found in pull request title "chore(deps): update dependency next to v14 [security]". Scope must match one of: api, inbound-mail, web, webhook, widget, worker, ws, ee-auth, ee-billing, ee-billing-web, ee-echo-api, ee-echo-web, ee-echo-worker, ee-dal, ee-shared-services, ee-translation, ee-translation-web, automation, dal, design-system, embed, novui, shared, shared-web, testing, application-generic, novu-labs, client, echo, headless, nest, node, notification-center, angular-workspace, notification-center-angular, notification-center-vue, providers, stateless.

@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from f802390 to a4d3d18 Compare May 22, 2024 16:57
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from a4d3d18 to 57da0f1 Compare May 30, 2024 08:33
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from 57da0f1 to 87957af Compare May 31, 2024 09:08
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from 87957af to ff4ca94 Compare May 31, 2024 16:03
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 2 times, most recently from dc6f1aa to 403e637 Compare May 31, 2024 17:02
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from 403e637 to 440e72f Compare June 3, 2024 10:47
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from 440e72f to 504b1c1 Compare June 3, 2024 14:25
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from 4638fc1 to 0182953 Compare November 11, 2024 20:35
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from 0182953 to 5f17a7b Compare November 12, 2024 08:29
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch 2 times, most recently from 76d63ad to 406e639 Compare November 12, 2024 10:03
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from 406e639 to c2b6baf Compare November 12, 2024 10:45
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from c2b6baf to 6f90ab8 Compare November 12, 2024 11:14
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.

1 participant