Repository navigation
Bump Next.js to 16.4.2 for critical security advisories - #75
Conversation
npm audit --omit=dev flags next 16.0.0-16.4.0 (RCE in the Image Optimization API with SVGs, RCE in use-cache functions returning typed arrays, DoS via Server Actions). The fix is outside the ~16.3 range, so next and @next/third-parties move to ~16.4.2 together, per docs/MAINTENANCE.md's security-fix rule.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
nextcommerce-docs | 1241f8e | Commit Preview URL Branch Preview URL |
Oct 23 2026, 02:52 AM |
Code Review SummaryStatus: No Issues Found | Recommendation: Merge OverviewDependency-only security bump of Verified:
Note (not a finding): this is a Next.js minor upgrade, which the maintenance doc normally expects to be reviewed as a migration. No migration-relevant changes surfaced in the reviewed code; the PR reports Files Reviewed (2 files)
Reviewed by minimax-m3 · Input: 27K · Output: 2K · Cached: 222.7K |
security-audit(npm audit --omit=dev) started failing on every docs PR on 2026-10-23. Three critical Next.js advisories cover next 16.0.0–16.4.0:use cachefunctions returning typed arrays16.4.2 fixes all three. That's outside the patch-only
~16.3range, so this PR changes the range explicitly, asdocs/MAINTENANCE.mdrequires for a security fix:next~16.3.6→~16.4.2(installs 16.4.2)@next/third-parties~16.3.1→~16.4.2, moved with Next.js per the same docThe lockfile was regenerated with npm 11, which wrote the committed lockfile, so the only changes are the
next,@next/env,@next/swc-*and@next/third-partiesversions. npm 10 would also have dropped everylibcfield.Local results:
npm audit --omit=dev: 0 vulnerabilitiesnpm run build, including its prebuild link, capability and markup checks: passescheck-search-budget(0.47 MB of 0.75 MB) andcheck-search-quality: both passcheck-dependency-compatibility: passesThis unblocks #74 and the other open docs PRs once it merges.