Repository navigation
chore(web): upgrade Next.js 16.4.3 -> 16.4.6 for security advisory - #192
Merged
Merged
Conversation
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).
Contributor
There was a problem hiding this comment.
🟢 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
nextandeslint-config-nextto16.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
|
👀 Reviewing |
There was a problem hiding this comment.
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.
prasadlohakpure
approved these changes
Nov 30, 2026
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>
This was referenced Dec 1, 2026
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.
Closes #191
Summary
next@16.4.3is affected by published Next.js security advisories.pnpm audit --prodreported 7 moderate advisories, fixed in>=16.4.5. This PR upgradesweb/to16.4.6.Changes
web/package.json:nextandeslint-config-nextfrom16.4.3to16.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.pnpm installalso re-resolves thelatesttag for@patterninc/pattern-uito a newer build. I left that unrelated bump out so this PR is only the security fix.pnpm install --frozen-lockfilepasses on the result.web/next.config.ts: setsexperimental.agentUpgrade: 'security', with a comment. Upgrade reminders innext dev/next build(and the defaultnext upgrade --agentpolicy) then fire only for releases that fix a security advisory.securityis 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:pnpm install --frozen-lockfilenext --versionNext.js v16.4.6pnpm lintpnpm type-checkpnpm prettier-checkpnpm testpnpm buildnext startsmoke test/,/jobs,/commands,/clusters,/jobs/[id]return 200pnpm audit --prodNotes
nextto16.4.6, together with Go, Docker and CI changes. This PR is the smaller, Next.js-only fix. Whichever merges second needs a rebase; if Bumping versions for dependencies #174 merges first, only thenext.config.tschange remains here.