…al) (objectstack-ai#11361)
Fixes objectstack-ai#11356
## Summary
`next` 16.3.3 carries GHSA-vcvr-r3jv-pc5j (critical, CVSS 9.5, "Remote
Code Execution in next/og ImageResponse"). The fixed release is 16.3.6.
On `main` at `2124d04111`, `apps/site/package.json` pins `"next":
"16.3.3"` and `pnpm-lock.yaml` resolves `next@16.3.3`. The surface is
reachable: `apps/site/app/og/docs/[...slug]/route.tsx` imports
`ImageResponse` from `'next/og'`, and the production build prerenders
184 PNGs through it.
This PR moves to the patched release. It supersedes Dependabot's objectstack-ai#11235
(manifest only, so every install step failed with
`ERR_PNPM_OUTDATED_LOCKFILE`) and objectstack-ai#11236 (a full re-resolution that gave
nanoid and vite each an extra physical copy). It adds no OSV or audit
exemption, and the lockfile is not hand-edited.
## Change
- `apps/site/package.json`: the `next` line only, `16.3.3` to `16.3.6`,
still an exact pin. No other objectui manifest declares `next`: `git
grep '"next"'` over every `package.json` at `2124d04111` has exactly one
hit, this line.
- `pnpm-lock.yaml`: regenerated with `pnpm install --lockfile-only`
under pnpm 10.31.0 (the `packageManager` version), starting from
`main`'s lockfile unchanged.
## Lockfile
55 lines changed on each side.
- `packages:` has 1767 entries before and after. 10 are removed and 10
added: `next`, `@next/env` and the eight `@next/swc-*` binaries, each
16.3.3 to 16.3.6.
- `snapshots:` has 1773 entries before and after. 14 are removed and 14
added: the same 10, plus the four snapshot keys that embed the `next`
version as a peer. Those are `fumadocs-core`, `fumadocs-mdx`,
`fumadocs-ui`, and `better-auth`, whose optional `next` peer resolves to
the workspace copy. None of the four changes version.
- Two importers change: `apps/site`, and `packages/auth` through the
`better-auth` snapshot key only (its specifier and version are
unchanged).
- The string `16.3.3` no longer appears anywhere in the lockfile.
## Verification
Every row below was measured on `76e9ee3`, this branch's head. `main`
was still at `2124d04111` when this PR was opened, so there was nothing
to merge.
The runs used Node 22.23.3. This container ships Node 22.22.0, and the
repository's `engine-strict=true` refuses it, because `jsdom@30.0.1`
requires `^22.22.2`. CI is unaffected: its `setup-node` asks for `22.x`,
which takes the newest 22 release. See Acceptance notes.
| Check | Result |
|---|---|
| `node scripts/check-lockfile-integrity.mjs --base-ref origin/main`
(the gate objectstack-ai#11236 failed) | exit 0, `VERDICT clean`: 1773 resolutions on
both sides, no backward move, no new copy. `--self-test` exit 0, 29
cases |
| `pnpm install --frozen-lockfile` | exit 0, and the installed
`apps/site/node_modules/next` reads 16.3.6 |
| Control leg: `main`'s lockfile with this branch's manifest, `pnpm
install --frozen-lockfile` | exit 1, `ERR_PNPM_OUTDATED_LOCKFILE` (the
objectstack-ai#11235 failure). Restored afterwards: `git diff HEAD` empty, blob hash
equal to HEAD's |
| `node scripts/check-lockfile-dedupe.mjs` (bare, the hard verdict) |
exit 0, `VERDICT deduped` |
| `pnpm turbo run build --filter='@object-ui/site'` (the `Build Docs`
command), under the shared verify lock, `--concurrency=2` | exit 0,
30/30 tasks, `Next.js 16.3.6 (Turbopack)`. The site task was a cache
miss, so it really ran: 559 static pages, including 184
`/og/docs/**/image.png` prerendered through `ImageResponse`, each a real
PNG |
| `pnpm --filter @object-ui/site type-check` (`fumadocs-mdx && next
typegen && tsc --noEmit`) | exit 0 |
| `pnpm --filter @object-ui/auth type-check`, then `pnpm exec vitest run
packages/auth/` (the importer whose snapshot key moved) | exit 0. 28
files, 282 tests passed |
| The 10 test files that read `pnpm-lock.yaml` or resolve through
`apps/site`: `ci-cd-pipeline-doc`, `docs-build-trigger`,
`check-installed-spec-pin-claims`, `check-lockfile-integrity`,
`check-lockfile-dedupe`, `check-pre-install-import-graph`,
`markdown-test-inputs`, `check-doc-links`, `check-changeset-presence`,
`MetadataService.specKeyReference` | 10 files, 479 tests passed |
| `node scripts/check-changeset-presence.mjs` | exit 0, "no changeset is
owed" |
| `check:control-bytes`, `check:new-line-citations`,
`check:pre-install-import-graph`, `check:phantom-deps`,
`check:unused-deps`, `type-check:coverage` | all exit 0 |
| `node scripts/check-governed-queue-guard.mjs --test
apps/site/package.json pnpm-lock.yaml` | `NOT GOVERNED` |
Left to CI: the repository-wide `pnpm lint` and `pnpm type-check`, the
eight test shards, coverage, `Build & E2E`, and `Bundle Analysis`. No
package source changes.
## OSV-Scanner, before and after
I ran OSV-Scanner v2.3.8 as `scan --offline-vulnerabilities
--lockfile=pnpm-lock.yaml`, against its offline npm database. The
binary's SHA-256 (`bc98e153…`) matches the release's checksum file.
objectui has no OSV workflow, so this is a reading, not a gate.
| Tree | Exit | Result |
|---|---|---|
| `main` at `2124d04111` | 1 | 62 rows, 1 Critical:
`GHSA-vcvr-r3jv-pc5j`, `next` 16.3.3 |
| this branch at `76e9ee3` | 1 | 61 rows, 0 Critical |
The two row sets differ by exactly one line: the `next` advisory is
gone, and no row is added. The other 61 rows are already on `main` and
are outside this card.
## Changeset
None. `apps/site` is `"private": true`, and no published package's
source or contract changes. `node scripts/check-changeset-presence.mjs`
settles it (exit 0, above).
## Acceptance notes
- **Overlap with draft objectstack-ai#11335** (another seat). It also touches
`pnpm-lock.yaml`, but only in the `importers:` block of a different
package (it adds an `@object-ui/sdui-parser` workspace link). Its hunks
are disjoint from this PR's. If git reports a conflict for whichever
lands second, regenerate with `pnpm install --lockfile-only`; do not
hand-merge.
- **Alert count.** The push banner reported 2 critical Dependabot alerts
on the default branch. OSV over `pnpm-lock.yaml` reads 1 Critical, the
one fixed here. Where the second one comes from was not measured.
- **Node floor.** Root `engines.node` declares `>=22.11`, and
`CONTRIBUTING.md` repeats it. But `jsdom@30.0.1` declares `^22.22.2 ||
^24.15.0 || >=26.0.0`, and `.npmrc` sets `engine-strict=true`. So on
Node 22.22.0, which the declared floor admits, `pnpm install
--frozen-lockfile` stops with `ERR_PNPM_UNSUPPORTED_ENGINE` naming
jsdom. This PR does not change that. It is reported to the dispatching
seat for a separate card. Locally I used a checksum-verified Node
22.23.3 from a scratch directory rather than turning `engine-strict`
off.
Session: `https://claude.ai/code/session_018gA1pE6eJtwHhqx72G8U9X`
---
_Generated by [Claude
Code](https://claude.ai/code/session_018gA1pE6eJtwHhqx72G8U9X)_
Co-authored-by: Claude <noreply@anthropic.com>
Bumps next from 16.3.3 to 16.3.6.
Release notes
Sourced from next's releases.
Commits
a758ffcv16.3.6868fad3[active-lts] Harden next/og SVG serialization8c81cbb[lts-active] test: remove unsupported deployment ID builder cases (#98821)ca2c75ev16.3.514fb290[backport] Fix use cache prerender signal retention (#98448)2b1f28d[16.3.x] Add CSP nonce to script tags of loading and template files (#98403)4b56cee[16.3.x] Backport docs fixes (#98317)5568a02[backport] docs: local development: Rewrite docker section, add Windows Dev D...93249ab[16.3.X] Emit whole-app server NFTs whenoutput: 'standalone'is used with ...6549fd7[16.3.x] next/image: reject empty image on read/write to disk cache (#98186)