Repository navigation
fix(site): move next 16.3.3 to 16.3.6 for GHSA-vcvr-r3jv-pc5j (critical) - #11361
Conversation
next 16.3.3 carries GHSA-vcvr-r3jv-pc5j (critical, Remote Code Execution in next/og ImageResponse), and apps/site serves that surface from its og/docs route. Move the exact pin to 16.3.6, the fixed release, and regenerate pnpm-lock.yaml with `pnpm install --lockfile-only` under the packageManager pnpm (10.31.0), starting from main's lockfile. The lockfile moves only next and its own @next/* packages, plus the four snapshot keys that embed the next version as a peer (fumadocs-core, fumadocs-mdx, fumadocs-ui, better-auth). No package gains a physical copy. Claude-Session: https://claude.ai/code/session_018gA1pE6eJtwHhqx72G8U9X Co-authored-by: Claude <noreply@anthropic.com>
|
changeset-claim-re-read
|
✅ Console Performance Budget
The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it. 📦 Bundle Size Report
Size Limits
|
…jectui#11168 slice 3, round 4) origin/main d0fba91 (#11346, #11359, #11361, #11367). It touches pnpm-lock.yaml, which this branch also edits (the plugin-tree devDependency link); no conflict. Claude-Session: https://claude.ai/code/session_01VhxTqosz7wn54ahqyxgERT Co-authored-by: Claude <noreply@anthropic.com>
Fixes #11356
Summary
next16.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. Onmainat2124d04111,apps/site/package.jsonpins"next": "16.3.3"andpnpm-lock.yamlresolvesnext@16.3.3. The surface is reachable:apps/site/app/og/docs/[...slug]/route.tsximportsImageResponsefrom'next/og', and the production build prerenders 184 PNGs through it.This PR moves to the patched release. It supersedes Dependabot's #11235 (manifest only, so every install step failed with
ERR_PNPM_OUTDATED_LOCKFILE) and #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: thenextline only,16.3.3to16.3.6, still an exact pin. No other objectui manifest declaresnext:git grep '"next"'over everypackage.jsonat2124d04111has exactly one hit, this line.pnpm-lock.yaml: regenerated withpnpm install --lockfile-onlyunder pnpm 10.31.0 (thepackageManagerversion), starting frommain'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/envand 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 thenextversion as a peer. Those arefumadocs-core,fumadocs-mdx,fumadocs-ui, andbetter-auth, whose optionalnextpeer resolves to the workspace copy. None of the four changes version.apps/site, andpackages/auththrough thebetter-authsnapshot key only (its specifier and version are unchanged).16.3.3no longer appears anywhere in the lockfile.Verification
Every row below was measured on
76e9ee3, this branch's head.mainwas still at2124d04111when 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=truerefuses it, becausejsdom@30.0.1requires^22.22.2. CI is unaffected: itssetup-nodeasks for22.x, which takes the newest 22 release. See Acceptance notes.node scripts/check-lockfile-integrity.mjs --base-ref origin/main(the gate #11236 failed)VERDICT clean: 1773 resolutions on both sides, no backward move, no new copy.--self-testexit 0, 29 casespnpm install --frozen-lockfileapps/site/node_modules/nextreads 16.3.6main's lockfile with this branch's manifest,pnpm install --frozen-lockfileERR_PNPM_OUTDATED_LOCKFILE(the #11235 failure). Restored afterwards:git diff HEADempty, blob hash equal to HEAD'snode scripts/check-lockfile-dedupe.mjs(bare, the hard verdict)VERDICT dedupedpnpm turbo run build --filter='@object-ui/site'(theBuild Docscommand), under the shared verify lock,--concurrency=2Next.js 16.3.6 (Turbopack). The site task was a cache miss, so it really ran: 559 static pages, including 184/og/docs/**/image.pngprerendered throughImageResponse, each a real PNGpnpm --filter @object-ui/site type-check(fumadocs-mdx && next typegen && tsc --noEmit)pnpm --filter @object-ui/auth type-check, thenpnpm exec vitest run packages/auth/(the importer whose snapshot key moved)pnpm-lock.yamlor resolve throughapps/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.specKeyReferencenode scripts/check-changeset-presence.mjscheck:control-bytes,check:new-line-citations,check:pre-install-import-graph,check:phantom-deps,check:unused-deps,type-check:coveragenode scripts/check-governed-queue-guard.mjs --test apps/site/package.json pnpm-lock.yamlNOT GOVERNEDLeft to CI: the repository-wide
pnpm lintandpnpm type-check, the eight test shards, coverage,Build & E2E, andBundle 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.mainat2124d04111GHSA-vcvr-r3jv-pc5j,next16.3.376e9ee3The two row sets differ by exactly one line: the
nextadvisory is gone, and no row is added. The other 61 rows are already onmainand are outside this card.Changeset
None.
apps/siteis"private": true, and no published package's source or contract changes.node scripts/check-changeset-presence.mjssettles it (exit 0, above).Acceptance notes
pnpm-lock.yaml, but only in theimporters:block of a different package (it adds an@object-ui/sdui-parserworkspace link). Its hunks are disjoint from this PR's. If git reports a conflict for whichever lands second, regenerate withpnpm install --lockfile-only; do not hand-merge.pnpm-lock.yamlreads 1 Critical, the one fixed here. Where the second one comes from was not measured.engines.nodedeclares>=22.11, andCONTRIBUTING.mdrepeats it. Butjsdom@30.0.1declares^22.22.2 || ^24.15.0 || >=26.0.0, and.npmrcsetsengine-strict=true. So on Node 22.22.0, which the declared floor admits,pnpm install --frozen-lockfilestops withERR_PNPM_UNSUPPORTED_ENGINEnaming 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 turningengine-strictoff.Session:
https://claude.ai/code/session_018gA1pE6eJtwHhqx72G8U9XGenerated by Claude Code