Upgrade Next.js to 16.2.11 security release#1091
Conversation
Move Next.js and @next/env to 16.2.11, keep the lockfile aligned, and close the tracked security issue. Verified with the focused framework tests, verify:cheap, verify:ui, verify:pr-local, and a clean production dependency audit.
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Warning Review limit reached
Next review available in: 56 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughNext.js is upgraded from 16.2.10 to 16.2.11. Issue ChangesNext.js security update
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@package.json`:
- Line 191: Update the Next.js version reference in
docs/production-readiness-checklist.md from 16.2.10 to 16.2.11, matching the
^16.2.11 runtime target declared by the package.json next dependency.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: e6481a48-6b79-4143-b2e1-87a50a6103bd
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (2)
docs/outstanding-issues.mdpackage.json
Update the production-readiness checklist to the patched 16.2.11 runtime documented by package.json.
Summary
nextand the direct@next/envdependency from 16.2.10 to 16.2.11.Why
Next.js 16.2.10 is in the affected range for high-severity security advisories fixed by 16.2.11. This is an isolated patch-level dependency update with no application behavior change intended.
Files
package.jsonpackage-lock.jsondocs/outstanding-issues.mdVerification
npm audit --omit=dev --audit-level=high— passed, 0 vulnerabilities.npx vitest run tests/check-runtime.test.ts tests/proxy.test.ts tests/proxy-session-refresh.test.ts tests/security-headers.test.ts— 43 passed.npm run check:runtime— passed on Node 24.18.0 / npm 11.17.0.npm run verify:cheap— passed.npm run ensure— project identity verified at the selected local URL.npm run verify:ui— passed; production build succeeded and Chromium 265/265 passed.npm run verify:pr-local -- --files package.json,package-lock.json,docs/outstanding-issues.md— passed, including lint, typecheck, full unit suite, production build, and offline RAG fixtures.Checks not run
.env.localis intentionally absent there; code-only readiness checks passed.Risk and rollback
RAG impact: no retrieval behaviour change — framework security patch and lockfile only.
Note
Low Risk
Patch-level framework dependency update with no app logic changes; residual risk is limited to Next.js runtime behavior at patch level.
Overview
Patches Next.js off the high-severity advisory range by bumping
nextand@next/envfrom 16.2.10 to 16.2.11, with a regeneratedpackage-lock.jsonso optional@next/swc-*platform binaries stay on the same version.Outstanding issue #50 is removed from the open table and archived as resolved, noting clean production
npm audit, focused framework tests,verify:cheap, and Chromium UI verification.No application source changes; dev-only Next tooling (e.g.
eslint-config-next) remains on 16.2.10.Reviewed by Cursor Bugbot for commit 2cf82e4. Configure here.
Summary by CodeRabbit
Bug Fixes
Documentation