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

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
next (source) 13.4.12 -> 13.5.0 age adoption passing confidence
next (source) 13.4.12 -> 14.2.15 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

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

CVE-2024-39693

Impact

A Denial of Service (DoS) condition was identified in Next.js. Exploitation of the bug can trigger a crash, affecting the availability of the server.

This vulnerability can affect all Next.js deployments on the affected versions.

Patches

This vulnerability was resolved in Next.js 13.5 and later. We recommend that users upgrade to a safe version.

Workarounds

There are no official workarounds for this vulnerability.

Credit

  • Thai Vu of flyseccorp.com
  • Aonan Guan (@​0dd), Senior Cloud Security Engineer

CVE-2024-51479

Impact

If a Next.js application is performing authorization in middleware based on pathname, it was possible for this authorization to be bypassed.

Patches

This issue was patched in Next.js 14.2.15 and later.

If your Next.js application is hosted on Vercel, this vulnerability has been automatically mitigated, regardless of Next.js version.

Workarounds

There are no official workarounds for this vulnerability.

Credits

We'd like to thank tyage (GMO CyberSecurity by IERAE) for responsible disclosure of this issue.

CVE-2024-56332

Impact

A Denial of Service (DoS) attack allows attackers to construct requests that leaves requests to Server Actions hanging until the hosting provider cancels the function execution.

Note: Next.js server is idle during that time and only keeps the connection open. CPU and memory footprint are low during that time.

Deployments without any protection against long running Server Action invocations are especially vulnerable. Hosting providers like Vercel or Netlify set a default maximum duration on function execution to reduce the risk of excessive billing.

This is the same issue as if the incoming HTTP request has an invalid Content-Length header or never closes. If the host has no other mitigations to those then this vulnerability is novel.

This vulnerability affects only Next.js deployments using Server Actions.

Patches

This vulnerability was resolved in Next.js 14.2.21, 15.1.2, and 13.5.8. We recommend that users upgrade to a safe version.

Workarounds

There are no official workarounds for this vulnerability.

Credits

Thanks to the PackDraw team for responsibly disclosing this vulnerability.


Release Notes

vercel/next.js (next)

v13.5.0

Compare Source

v13.4.19

Compare Source

Core Changes
  • fix: invalid module transform for @headlessui/react: #​54206
  • chore: remove unnecessary type cast in dev-build-watcher: #​54221
  • fix process.env not being available in standalone mode: #​54203
  • Fix missing devPageFiles collection: #​54224
  • Add Route and LinkProps stub generics: #​54226
  • Use createClientModuleProxy from Flight Server: #​54232
  • Add default not found to loader tree of group routes root layer: #​54228
  • feat(image): add support for custom loaderFile when loader: default: #​53417
  • Fix renamed export of Server Actions: #​54241
  • Ensures App Router Link respects scroll-behavior: smooth when only hash is changed.: #​54243
Misc Changes
Credits

Huge thanks to @​opnay, @​styfle, @​timneutkens, @​ztanner, @​shuding, @​huozhi, @​vinaykulk621, @​balazsorban44, @​goguda, and @​coreyleelarson for helping!

v13.4.18

Compare Source

Core Changes
  • refactor: remove edge condition for module proxy path: #​54167
  • Remove unused variables: #​54149
  • chore: improve ts types for position in dev-build-watcher: #​54124
  • Turbopack: Strip relative path prefix when generating PageLoaderAsset: #​54040
  • Add size property to ReadonlySearchParams: #​53144
  • Assign default not-found boundary if custom not-found is not present for root layer only: #​54185
  • Allow range version for eslint config: #​53751
  • Automatically modularizeImports for the popular @​headlessui/react library: #​54188
  • fix bfcache restoration behavior: #​54198
Misc Changes
Credits

Huge thanks to @​huozhi, @​shuding, @​styfle, @​jridgewell, @​bencmbrook, @​cramforce, and @​ztanner for helping!

v13.4.17

Compare Source

Core Changes
  • fix(next/image): empty blur image when animated #​54028
  • Do not output pages 404 in tree view if app not-found is used: #​54051
  • Fix scroll bailout logic when targeting fixed/sticky elements: #​53873
  • Debug tracing: add updated modules and page to HMR span: #​53698
  • fix(next-swc): coerce mdxrs default options: #​54068
  • fix: don't add forceConsistentCasingInFileNames to tsconfig when ts version >= 5.0: #​51564
  • fix(47299): allow testing pages with metadata in jsdom test environment: #​53578
  • upgrade edge-runtime dependency: #​54117
  • Fix root not-found page tree loader structure: #​54080
  • chore: remove as any type cast: #​54074
  • chore: refactor to use fs.promises.rm(): #​54076
  • Refactor layout router creation in app-render: #​54126
  • chore(image): remove apple silicon workaround for versions older than [email protected]: #​54125
  • fix routing bug when bfcache is hit following an mpa navigation: #​54081
  • Tracing: add opt-in flag to send a subset of development traces to url: #​53880
  • fix(edge): override init when cloning with NextRequest: #​54108
  • OpenTel: remove the internal (ipc) fetched from traces in a non-verbose mode: #​54083
  • cleanup: remove unnecessary effect dep: #​54134
  • Next build: use exported handle_issues from turbopack: #​52972
  • node-web-streams: remove tee shim, use ReadableStream.tee: #​54079
  • fix: cookies().has() breaks in app-route: #​54112
  • Revert "fix(47299): allow testing pages with metadata in jsdom test environment": #​54160
Documentation Changes
  • fix missing ' in data-fetching/fetching-caching-and-revalidating: #​54058
Example Changes
  • Update Docker example to remove HOSTNAME: #​54102
Misc Changes
  • chore: hide "same on new version" without link: #​54048
  • chore(ci): small notes for the build steps: #​54073
  • chore: update lock bot wording: #​54099
  • Update swc_core to v0.79.59: #​54082
  • install-native.mjs: include packageManager field: #​54132
Credits

Huge thanks to @​balazsorban44, @​huozhi, @​ztanner, @​williamli, @​wbinnssmith, @​kwonoj, @​stefanprobst, @​feugy, @​timneutkens, @​kdy1, @​Kikobeats, @​styfle, @​dvoytenko, @​MaxLeiter, and @​devjiwonchoi for helping!

v13.4.16

Compare Source

Core Changes
  • Concept: test mode for Playwright and similar integration tools: #​52520
  • Turbopack: fix hiding node_modules warnings in error overlay.: #​54022
  • ci(next-swc): print glibc version when build: #​54026
  • Adjust internal action proxy export: #​54004
Documentation Changes
  • Update 05-client-side-rendering.mdx with latest tanstack query version: #​54009
  • Open Graph Image font declaration moved to correct place: #​53998
  • Update opengraph-image.mdx: Fix typo: #​54020
Misc Changes
  • Remove extra label from runner: #​54002
  • add standalone testcase for ipv6 hostnames: #​53999
  • release: add release log generation script: #​54006
  • test(ci): refine test suite name unique: #​54013
  • Leverage previous swc build images: #​54027
  • chore: mark build folder indexable: #​54029
  • Move turbo outside of build for docker swc builds: #​54035
Credits

Huge thanks to @​ijjk, @​ztanner, @​huozhi, @​lacymorrow, @​dvoytenko, @​kylemcd, @​kwonoj, @​tibi1220, @​wbinnssmith, and @​shuding for helping!

v13.4.15

Compare Source

Core Changes
  • Fix action failures due to state tree encoding: #​53655
  • Initial HMR Nexturbo API implementation: #​52950
  • Turbopack: add edge app routes : #​53387
  • Turbopack: Hide Turbo Engine internals: #​53007
  • add unit test case for next.rs api: #​53679
  • Fix not-found rendering in production with edge: #​53687
  • fix(next/image): don't call ReactDOM.preload if missing, such as jest: #​53443
  • Add docs page for uncaught DynamicServerErrors: #​53402
  • Consolidate Server and Routing process into one process: #​53523
  • fix: Update outdated transform imports lucide-react: #​53697
  • Update font data: #​53759
  • Add warnings for static generation bail outs: #​53761
  • Sort root entries per pageExtensions config for consistency: #​53769
  • improve error message for conflicting parallel segments: #​53803
  • Add changeFrequency and priority attributes to sitemaps: #​48484
  • Ensure we set cache-control: no-cache for actions: #​53824
  • Reuse RenderWorker type: #​53782
  • fix: normalize backslash in getStaticPaths() for windows: #​53876
  • Delete errorneous empty content length header: #​53843
  • Turbopack: more tests and bugfixes for next.rs api: #​53809
  • Add @heroicons/react to modularizeImports: #​53902
  • Turbopack: Fix debugging in napi for next-api: #​53889
  • Fix/match resource: #​53796
  • Use summary_large_image as twitter card if images present by default: #​53919
  • Turbopack: Emit whether server or client assets changed: #​53879
  • Limit sharp's concurrency: #​53385
  • enable @​vercel/og support for turbopack: #​53917
  • feat(image): DataURL placeholder support for : #​53442
  • Recover not found errors from flight data to render with proper boundary: #​53703
  • Update React to 18.3.0-canary-1a001dac6-20230812: #​53881
  • add "expect" to list of forbidden IPC headers: #​53947
  • Update swc runners config: #​53939
  • Better IPv6 support for next-server: #​53131
Documentation Changes
  • Update 11-middleware.mdx: Added Switcher: #​53977
  • Fix doc grammatical errors: #​53672
  • Fix a link in incrementalCacheHandlerPath.mdx: #​53718
  • Fix typo in data fetching documentation: #​53772
  • Docs: Add option for fetching data using route handlers - from the client: #​53793
  • docs: Add more information about Server Actions: #​53805
  • docs: document cache tagging mechanism: #​53806
  • chore(docs): add missing "try it out": #​53815
  • docs: Opting out of scrolling with next/link and useRouter.: #​53804
  • chore(docs): note cache-control header for preview/draft mode: #​53825
  • Include instructions for bun package manager: #​53590
  • Docs: Update confusing wording in intercepting routes: #​53854
  • (docs) Fixes Server Actions example: #​53920
  • fix typo: #​53908
  • Docs: fix pnpm command for saving dev deps (#​53937): #​53938
  • The extra word 'the' has been deleted: #​53951
Example Changes
  • [Examples] Update Example Prepr CMS: #​49224
  • Update to with-supertokens example app: #​53434
  • docs(with-stripe-typescript): Update README demo link: #​53662
  • (example) update github-pages example: #​52168
  • chore: add light/dark mode theme detection to image component example: #​53760
Misc Changes
Credits

Huge thanks to @​iamarpitpatidar, @​pythagoras-yamamoto, @​alexkirsz, @​sokra, @​jsteele-stripe, @​tknickman, @​gaojude, @​styfle, @​janicklas-ralph, @​huozhi, @​ijjk, @​vinaykulk621, @​balazsorban44, @​ztanner, @​timneutkens, @​ericfennis, @​JohnAdib, @​MiLk, @​kwonoj, @​delbaoliveira, @​leerob, @​LuudJanssen, @​lucasconstantino, @​davecarlson, @​colinhacks, @​shuding, @​jridgewell, @​jantimon, @​Banbarashik, @​ForsakenHarmony, @​kdy1, @​dvoytenko, @​arturbien, @​gnoff, @​hsrvms, and @​DuCanhGH, @​tim-hanssen, @​Aryan9592, and @​rishabhpoddar for helping!

v13.4.13

Compare Source

Core Changes
  • Improve internal web stream utils: #​53004
  • fix: Add Next-Url to http vary in consideration of intercept routes.: #​52746
  • update Turbopack: #​53098
  • Add app, error, and document entrypoints: #​53013
  • Turbopack: use edge environment in server-side rendering of client components too: #​53099
  • refactor(codemod): replace chalk with picocolors: #​53115
  • move webpack specific logic into a separate file: #​53114
  • feat(turbopack): emit MODULE_FEATURE telemetry from turbopack: #​52356
  • Fix not found hangs the build with overridden node env: #​53106
  • chore: update warning message from yarn add sharp to npm i sharp: #​53130
  • fix(edge): allow Request cloning via NextRequest: #​53157
  • chore: extract common get-validated-args: #​53165
  • Fix minimal basePath handling: #​53174
  • Updates @​typescript-eslint/parser to 6.1.0: #​52848
  • fix(next/image): washed out blur placeholder: #​52583
  • Handle basePath app-dir minimal case: #​53189
Documentation Changes
  • (Docs) add missing import.: #​52992
  • Fix formData code snippet in route handler docs: #​52532
  • docs: remove unneeded good to know section during installation: #​53078
  • docs: fix typo in 08-parallel-routes.mdx: #​53069
  • chore(docs): Extend the options for custom server init: #​52851
  • (Docs) Add missing import for useRef(): #​53015
  • (Docs) Remove FormData type on formData defined in .js file: #​53014
  • docs: fix codeblock for redirect: #​53120
  • chore(docs): client-side data fetching loading state: #​53164
Example Changes
  • feat: remove unused global variable: #​51767
Misc Changes
  • chore(ci): always run validate-docs-links action: #​53022
  • update install-native postinstall to use pnpm: #​53080
  • chore(ci): make validate-docs-links required: #​53123
  • chore(test): fix flaky tsconfig.json test: #​53132
  • chore(ci): fix validate-docs-links for non-PR: #​53129
  • Temporarily skip flakey action revalidate: #​53134
Credits

Huge thanks to @​vinaykulk621, @​Lantianyou, @​styfle, @​shuding, @​joulev, @​AkifumiSato, @​trigaten, @​HurSungYun, @​DevLab2425, @​sokra, @​alexkirsz, @​ztanner, @​leerob, @​SukkaW, @​kwonoj, @​huozhi, @​ijjk, @​balazsorban44, @​daniel-web-developer, @​ky1ejs, and @​arturbien for helping!


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.

@renovate renovate bot requested a review from takanome-dev as a code owner May 9, 2024 22:52
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from 3603d10 to 1ef5154 Compare June 17, 2024 15:43
@renovate renovate bot changed the title fix(deps): update dependency next to v14 [security] chore(deps): update dependency next [security] Jun 17, 2024
@renovate renovate bot changed the title chore(deps): update dependency next [security] fix(deps): update dependency next to v14 [security] Aug 6, 2024
@renovate renovate bot changed the title fix(deps): update dependency next to v14 [security] chore(deps): update dependency next [security] Sep 26, 2024
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from 1ef5154 to e0b2370 Compare October 15, 2024 08:25
@renovate renovate bot changed the title chore(deps): update dependency next [security] fix(deps): update dependency next [security] Dec 10, 2024
@renovate renovate bot force-pushed the renovate/npm-next-vulnerability branch from e0b2370 to 0ce3656 Compare December 18, 2024 08:27
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