fix(security): Fix security issue in next via minor version upgrade from 15.4.8 to 15.5.24 - #770
Open
aikido-autofix[bot] wants to merge 1 commit into
Open
aikido-autofix[bot] wants to merge 1 commit into
aikido-autofix[bot] wants to merge 1 commit into
Conversation
✅ Security Analysis ResultsNo security issues found. 3 files reviewed.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrade Next.js to fix critical RCE in AVIF image optimization, SSRF in WebSocket requests, DoS via connection exhaustion and CPU exhaustion in Server Functions, and disable AVIF optimization until patched.
✅ Code not affected by breaking changes.
✅ No breaking changes from the Next.js 15.4.8 => 15.5.24 upgrade affect this codebase.
The codebase contains a Next.js demo application (
packages/demo-nextjs) that uses:Basic Next.js routing (App Router and Pages Router)
Client components with
'use client'directiveStandard Next.js hooks (
useRouter,useSearchParams)No experimental features
No Next.js configuration file (using defaults)
No server components that use
cookies()orheaders()No MDX components
No AMP pages
No
unstable_rootParamsusageNo middleware
All breaking changes listed in the changelog (removal of
experimental.dynamicIO,useMDXComponents,experimental.strictNextHead, sync access restrictions for cookies/headers, Turbopack changes, AMP deprecation,unstable_rootParamsdeprecation, and middleware stabilization) do not impact any code in this repository.All breaking changes by upgrading next from version 15.4.8 to 15.5.24 (CHANGELOG)
experimental.strictNextHead: #81882window.next.turbopackinstead: #82580✅ 7 CVEs resolved by this upgrade, including 1 critical 🚨 CVE
This PR will resolve the following CVEs:
libheiflibrary used bysharpwhich Next.js uses for image optimization can lead to remote code execution when AVIF files are optimized.Until a fix has propagated, optimization of AVIF files is disabled.
DELETE/OPTIONSrequests allows attackers to bypass route restrictions and access unintended backend endpoints. An attacker could smuggle malicious requests to internal or admin routes through request boundary disagreement between proxy and backend.🤖 Remediation details
Upgrade
nextto 15.5.24 to remediate multiple security vulnerabilitiesShort summary
This PR fixes multiple security vulnerabilities in the
next(Next.js) package by upgrading it from15.4.8to15.5.24. The change is applied in two places: the rootpackage.json(wherenextis declared as a directdevDependency) and thepackages/demo-nextjs/package.jsonworkspace member manifest (where it is declared as a directdependency). Theyarn.locklockfile is updated accordingly, consolidating to a single resolved entry at15.5.24.next
nextwas declared as an exact-pinned direct dependency at15.4.8in both the monorepo rootpackage.jsonand thepackages/demo-nextjsworkspace manifest. Because both pins were exact (no caret or tilde), a lockfile refresh alone could not pull in a newer version — both manifest entries required explicit edits. The version was updated to15.5.24in both locations, which is the minimum release that satisfies all of the patched version floors across the full set of advisories targeting this package (the most demanding being15.5.24for the critical-severity advisory). After updating both manifests,yarn install --ignore-engines --ignore-scriptswas run from the lockfile root to produce a single consolidatedyarn.lockentry at15.5.24, replacing the previous15.4.8entry.Version changes
next15.4.815.5.24package.json+packages/demo-nextjs/package.json)