Skip to content

chore(web): upgrade Next.js 16.4.3 -> 16.4.6 for security advisory - #192

Merged
gauravwarale merged 1 commit into
mainfrom
web/next-16.4.6-security
Dec 1, 2026
Merged

gauravwarale merged 1 commit into
mainfrom
web/next-16.4.6-security

Conversation

@gauravwarale

Copy link
Copy Markdown
Contributor

Closes #191

Summary

next@16.4.3 is affected by published Next.js security advisories. pnpm audit --prod reported 7 moderate advisories, fixed in >=16.4.5. This PR upgrades web/ to 16.4.6.

Changes

  • web/package.json: next and eslint-config-next from 16.4.3 to 16.4.6 (exact pins, as before).
  • web/pnpm-lock.yaml: only the Next.js packages change (next, @next/env, @next/swc-*, eslint-config-next, @next/eslint-plugin-next): version strings and integrity hashes.
    • A plain pnpm install also re-resolves the latest tag for @patterninc/pattern-ui to a newer build. I left that unrelated bump out so this PR is only the security fix. pnpm install --frozen-lockfile passes on the result.
  • web/next.config.ts: sets experimental.agentUpgrade: 'security', with a comment. Upgrade reminders in next dev / next build (and the default next upgrade --agent policy) then fire only for releases that fix a security advisory. security is the current default; the value is written out so a change to Next.js's default does not widen it.

Verification

Run from web/ with Node 26 and pnpm 12.15.0:

Check Result
pnpm install --frozen-lockfile Pass
next --version Next.js v16.4.6
pnpm lint Pass
pnpm type-check Pass
pnpm prettier-check Pass
pnpm test 21 files, 108 tests pass, coverage thresholds met
pnpm build Pass
next start smoke test /, /jobs, /commands, /clusters, /jobs/[id] return 200
pnpm audit --prod No known vulnerabilities

Notes

Next.js 16.4.3 is affected by published security advisories
(pnpm audit --prod reported 7 moderate advisories fixed in >=16.4.5).
Upgrade next and eslint-config-next to 16.4.6 to clear them.

The lockfile change is limited to the Next.js packages. A normal
`pnpm install` also re-resolves the `latest` tag for
@patterninc/pattern-ui, so that unrelated bump was left out.

Also set experimental.agentUpgrade to 'security' in next.config.ts so
coding agents are nudged only about security upgrades.

Verified: frozen install, lint, type-check, prettier, vitest (108 tests),
next build, next start smoke test, pnpm audit --prod (no advisories).
@gauravwarale gauravwarale added the UI Web UI (web/) work label Nov 30, 2026
@gauravwarale gauravwarale self-assigned this Nov 30, 2026
@gauravwarale
gauravwarale marked this pull request as ready for review November 30, 2026 09:55
Copilot AI balanced review requested due to automatic review settings November 30, 2026 09:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the scoped Next.js security update.

No open issues 🎉

1 file not reviewed
  • web/pnpm-lock.yaml: Generated file
What changed in this PR

Updates the web app’s Next.js dependencies to address the security advisories tracked in #191, while keeping unrelated dependency upgrades out of scope.

Changes:

  • Pins next and eslint-config-next to 16.4.6.
  • Updates Next.js lockfile entries, integrity hashes, and dependent references.
  • Explicitly sets the agent upgrade policy to security-only.
File Description
web/​pnpm-lock.yaml Updates Next.js packages and references without unrelated version bumps.
web/​package.json Upgrades both Next.js dependency pins to 16.4.6.
web/​next.config.ts Sets and documents experimental.agentUpgrade: 'security'.

Review effort: Balanced

@argus-pattern

argus-pattern Bot commented Nov 30, 2026

Copy link
Copy Markdown

👀 Reviewing 02ab9b0.

@argus-pattern argus-pattern Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No findings. Checked: next/eslint-config-next pins in web/package.json; lockfile changes limited to Next.js packages, with integrity hashes matching the npm registry for 16.4.6; experimental.agentUpgrade: 'security' is a valid option in the 16.4.6 ExperimentalConfig type and schema; scope matches #191.

@gauravwarale
gauravwarale merged commit 82bab47 into main Dec 1, 2026
10 checks passed
@gauravwarale
gauravwarale deleted the web/next-16.4.6-security branch December 1, 2026 09:00
oly-agents Bot added a commit that referenced this pull request Dec 1, 2026
web/pnpm-lock.yaml: keep the Next.js 16.4.6 entries from main (#192)
and the supports-color@10.2.2 peer that this branch's openapi-typescript
brings in. pnpm install --frozen-lockfile accepts the result, and its
package set is main's plus this branch's openapi-typescript tree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Gaurav Warale <gaurav.warale@pattern.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI Web UI (web/) work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[web] Upgrade Next.js 16.4.3 -> 16.4.6 for security advisory

3 participants