[Aikido] Fix security issue in next via minor version upgrade from 15.4.8 to 15.5.21 - #757
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 SSRF via WebSocket requests, DoS attacks on Server Functions, authorization bypass in middleware, and source code disclosure vulnerabilities.
✅ 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 both Pages Router and App Router, but none of the breaking changes apply:No usage of
experimental.dynamicIOorexperimental.strictNextHeadconfiguration optionsNo usage of
useMDXComponentswith argumentsNo synchronous access to
cookies()orheaders()in server components (the app only uses client components with'use client'directive)No usage of
window.next.turbopackor related propertiesNo usage of AMP features
No usage of
unstable_rootParamsNo custom middleware that would be affected by the node middleware stabilization
All components in the demo app are either client components or simple server components without dynamic API usage, making them unaffected by the breaking changes in this upgrade.
All breaking changes by upgrading next from version 15.4.8 to 15.5.21 (CHANGELOG)
experimental.strictNextHead: #81882window.next.turbopackinstead: #82580✅ 5 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
🤖 Remediation details
Fix Next.js security vulnerabilities by upgrading
nextto 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 to two manifest files — the rootpackage.json(devDependencies) and the workspace memberpackages/demo-nextjs/package.json(dependencies) — with the resolved version inyarn.lockupdated accordingly.next
nextwas pinned at15.4.8in both the rootpackage.jsonand thepackages/demo-nextjs/package.jsonworkspace manifest, making it a direct dependency in both locations. The version was bumped to15.5.21— the smallest 15.x release that satisfies the patched-version floor for all advisories in scope, including CVE-2026-64644 which requires ≥ 15.5.21, and the earlier group (CVE-2026-44578, GHSA-q4gf-8mx6-v5v3, GHSA-8h8q-6873-q5fj, CVE-2026-44575, GHSA-w37m-7fhw-fmv9) which were fixed from 15.5.8–15.5.16 onward. Both manifest entries were updated andyarn install --ignore-engines --ignore-scriptswas run from the repo root to refresh the single lockfile entry fromnext@15.5.16tonext@15.5.21.Version changes
next15.4.8→ (interim15.5.16) →15.5.2115.5.21