[Aikido] Fix security issue in next via minor version upgrade from 15.4.8 to 15.5.21 - #758
Open
aikido-autofix[bot] wants to merge 1 commit into
Open
Conversation
|
🚨 gitStream Monthly Automation Limit Reached 🚨 Your organization has exceeded the number of pull requests allowed for automation with gitStream. To continue automating your PR workflows and unlock additional features, please contact LinearB. |
✅ Security Analysis ResultsGreat news! No security issues found in this pull request. Analysis Summary:
💡 Trigger a new security scan by commenting Security analysis powered by Claude Sonnet 4.6 via pr-auditor | Questions? Contact #dx-team or check out this page |
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 SSRF, DoS, and connection exhaustion vulnerabilities affecting self-hosted servers and App Router applications.
✅ Code not affected by breaking changes.
✅ No breaking changes from the Next.js 15.4.8 to 15.5.16 upgrade affect this codebase.
The codebase contains a Next.js demo application (
packages/demo-nextjs) that uses basic Next.js features like the App Router, client components, and navigation hooks. However, none of the deprecated or removed features from version 15.5.0 are present:No
experimental.dynamicIOorexperimental.cacheComponentsconfigurationNo
useMDXComponentsusageNo
experimental.strictNextHeadconfigurationNo synchronous
cookies()orheaders()calls in server componentsNo AMP configuration
No
unstable_rootParamsusageNo custom middleware that would be affected by the node middleware stabilization
The upgrade can proceed safely without any code changes required.
All breaking changes by upgrading next from version 15.4.8 to 15.5.21 (CHANGELOG)
experimental.strictNextHead: #81882window.next.turbopackinstead: #82580✅ 6 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
🤖 Remediation details
Fix Next.js security vulnerabilities: bump
nextfrom 15.4.8 → 15.5.21Short summary
This PR remediates multiple high- and medium-severity vulnerabilities in the
nextpackage by upgrading it from15.4.8to15.5.21. The change is applied in two places: the rootpackage.json(devDependencies) and thepackages/demo-nextjs/package.jsonworkspace manifest, both of which carried an exact pin on the vulnerable version. Theyarn.locklockfile is refreshed accordingly, resolving to a single cleannext@15.5.21entry with no stale duplicates.next
nextis declared as a direct exact-pinned dependency in both the rootpackage.json(devDependencies) and thepackages/demo-nextjsworkspace manifest (dependencies). Both pins were updated from15.4.8to15.5.21in a single edit batch, followed by ayarn install --ignore-engines --ignore-scriptsrefresh from the lockfile root. The target version15.5.21is the smallest release that satisfies the patched-version floor for all advisories in scope, including CVE-2026-64644 (which requires ≥ 15.5.21 and was introduced as a new finding after an intermediate upgrade to 15.5.16). Noresolutionsoverrides were needed.Version changes
next(rootpackage.json)15.4.815.5.21next(packages/demo-nextjs/package.json)15.4.815.5.21@next/env15.4.815.5.21next@next/swc-linux-x64-gnu15.4.815.5.21next@next/swc-linux-x64-musl15.4.815.5.21next