fix(security): Fix security issue in next via minor version upgrade from 15.4.8 to 15.5.24 - #767
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 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 to 15.5.24 upgrade affect this codebase.
The codebase contains a Next.js demo application (
packages/demo-nextjs) that uses:Basic Next.js features (App Router and Pages Router)
Client components with
'use client'directiveStandard hooks like
useSearchParams,useRouterNo experimental features
No AMP configuration
No MDX components
No server-side usage of
cookies()orheaders()No middleware files
No
unstable_rootParamsusageAll breaking changes listed in the changelog (removal of
experimental.dynamicIO,useMDXComponents,experimental.strictNextHead, sync access restrictions for cookies/headers, AMP deprecation, andunstable_rootParamsdeprecation) have zero impact on this codebase.All breaking changes by upgrading next from version 15.4.8 to 15.5.24 (CHANGELOG)
experimental.strictNextHead: #81882window.next.turbopackinstead: #82580✅ 8 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.
🤖 Remediation details
Bump
nextto 15.5.24 to remediate multiple security vulnerabilitiesShort summary
This PR fixes multiple security vulnerabilities in
next(Next.js) by upgrading it from15.4.8to15.5.24. The package appeared as a direct dependency in two places: the rootpackage.json(devDependencies) and thepackages/demo-nextjsworkspace member (dependencies). Both declarations and the sharedyarn.lockwere updated.next
nextwas pinned at the exact version15.4.8in both the rootpackage.jsonand thepackages/demo-nextjsworkspace manifest, making it a direct dependency in both locations. Both pins were updated to15.5.24—the minimum version that satisfies all patched-version requirements across the full set of advisories affecting this package (the highest floor being 15.5.24 for GHSA-2xp9-vwfh-vxw4). Because both manifests shared the same exact pin, the related-package-alignment policy required moving them together; updating only the root would have left the workspace-drivennext@15.4.8lockfile entry alive. After both manifests were updated,yarn install --ignore-engines --ignore-scriptswas run from the repo root, collapsing the lockfile to a singlenext@15.5.24entry.Version changes
next(rootpackage.jsondevDependencies)15.4.815.5.24next(packages/demo-nextjsdependencies)15.4.815.5.24