Repository navigation
security(frontend): upgrade Next.js 16.2.12 → 16.4.5 (critical RCE patches) - #195
Open
AQIB-NAWAB wants to merge 1 commit into
Open
AQIB-NAWAB wants to merge 1 commit into
AQIB-NAWAB wants to merge 1 commit into
Conversation
Patch critical Next.js RCE advisories (use cache, image optimization, next/og) and the November 2026 security release by bumping next and eslint-config-next together. Transitive sharp moves to 0.35.5. Co-authored-by: Aqib Nawab <aqibnawab1100@gmail.com>
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.
Summary
Focused security upgrade for the frontend Next.js stack only. No open Dependabot/security upgrade PRs existed for this work (open PRs were feature branches only). GitHub Dependabot Alerts API returned 403 for this token, so versions and advisories were verified from
frontend/package.json+ lockfile, npm, and official Vercel/Next.js / GitHub Advisory sources.Version changes
next16.2.12(pinned + lockfile)16.4.5eslint-config-next16.2.1216.4.5(kept in lockstep)sharp(transitive via Next image pipeline)0.34.50.35.5(≥0.35.5 required for image-opt RCE workaround/fix)Only
frontend/package.jsonandfrontend/pnpm-lock.yamlchanged.Criticals addressed (verified)
Installed
16.2.12is inside the affected ranges for these official advisories;16.4.5is the current Active LTS security release on npm.GHSA-vcvr-r3jv-pc5j — Critical — RCE in Node.js
next/ogImageResponseAffected:
>=16.2.0 <16.3.6· Patched:16.3.6Sources: GHSA-vcvr-r3jv-pc5j · https://nextjs.org/blog/nextjs-security-update-september-22-2026
GHSA-673q-mjm6-r5xr — Critical — Unauthenticated RCE in
use cachereturning typed arraysAffected:
>=16.0.0 <=16.4.0· Patched:16.4.1Sources: GHSA-673q-mjm6-r5xr · https://nextjs.org/blog/nextjs-security-update-october-14-2026
GHSA-2464-fhr4-w9xw / CVE-2026-96889 — Critical — Unauthenticated RCE in Image Optimization when SVG is involved (glibc Linux)
Affected (16.x):
>16.0.0 <=16.4.0· Patched:16.4.1(pulls fixedsharp)Sources: GHSA-2464-fhr4-w9xw · https://nextjs.org/blog/nextjs-security-update-october-14-2026
Also covered by landing on 16.4.5 (November 2026 security release):
unstable_cache+use cache) — https://nextjs.org/blog/november-2026-security-releaseChecks run (this branch)
pnpm typecheck(frontend)pnpm lint(frontend)mainwith Next 16.2.12; CI already marks this stepcontinue-on-error: true(“Pre-existing react-hooks lint findings”)pnpm test(frontend)pnpm build(frontend)pnpm audit(frontend, after upgrade)Remaining risks / out of scope
403 Resource not accessible by integration); treat remaining repo alert count as still needing a human pass in the Security tab after merge.pnpm audit --prodalso showed 0 critical at time of check; no server dependency changes in this PR.Compatibility notes
@sentry/nextjspeer range includes^16; left unchanged at resolved10.76.2.19.2.4.