Repository navigation
chore(deps): in-range update, clearing five advisories from the toolchain - #157
Conversation
…hain `pnpm audit` goes from 10 high to 3. The three that remain are examined below — none has a fix this repo can take. Cleared, all in the dev graph: - wrangler 4.129.0 -> 4.147.0 — miniflare's undici 7.29.0 -> 7.29.1 (GHSA-rfgv-xxqx-mfg5, GHSA-w293-vg96-wgc3) and sharp 0.35.2 -> 0.35.4 (GHSA-rgj7-g3m4-5g8c, the libheif RCE). wrangler is how `pnpm prod` runs the Worker locally, so these ran on a developer's machine. 4.147.0 accepts wrangler.toml unchanged, compatibility_date included. - eslint, typescript-eslint 8.69.0 -> 8.71.0 and @sentry/vite-plugin — brace-expansion's three vulnerable lines (GHSA-qhr7-859c-m2p7, GHSA-6j4f-fj2g-mc7p). Routine, no advisory: react and react-dom 19.2.8 -> 19.3.0, zod 4.5.4 -> 4.6.5, hono 4.13.7 -> 4.13.13, vike 0.4.266 -> 0.4.267, vike-react 0.6.26 -> 0.6.29, hls.js, react-hook-form, @sentry/react, the three @payloadcms packages 3.88.0 -> 3.90.2, @cloudflare/workers-types, prettier, globals and the @types. Not fixed, and why: - undici 7.29.0 stays in the graph through payload, which pins it exactly at 7.29.0 — 3.90.2, the newest release, still does. Only an override could move it, and it does not earn one: `grep -rl undici dist/server` finds nothing after `pnpm build`, so undici never reaches the Worker. Neither advisory is reachable anyway — we open no WebSocket through it and use no `BalancedPool`. - braces GHSA-vfj7-8cjw-p6xm has no published fix. 3.0.3 is the newest version, so the ">=3.0.4" the advisory names does not exist. It arrives through @ladle/react's glob walker, on our own patterns. @payloadcms/live-preview-react stays pinned at 3.88.0, and jose at 5.10.0. Gate: lint, tsc --noEmit, 809 tests, and `pnpm build`. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013mJ9STzQPdTkjih1pGWRWX
The note says 0.6.26 returns `undefined` off-provider rather than throwing. Re-read at 0.6.29: the React context is still created with an `undefined` default and `usePageContext` still returns it unguarded, so the behaviour and the `catch` guarding it are both unchanged. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_013mJ9STzQPdTkjih1pGWRWX
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
wemeditate-web | 3437761 | Commit Preview URL Branch Preview URL |
Oct 05 2026, 08:50 AM |
Deploying wemeditate-design with
|
| Latest commit: |
3437761
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://70946555.wm-design.pages.dev |
| Branch Preview URL: | https://claude-chore-deps-routine-20.wm-design.pages.dev |
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Shape is right — in-range refresh, majors deferred, accounting accurate.
Your judgement call holds, on stronger evidence. After pnpm build, dist/server carries no undici, BalancedPool or RetryHandler, while @payloadcms/* sits in four chunks. Absent, not unreferenced. Skip the override.
Findings
should-fix—package.json:31: the untouched pin ships@payloadcms/live-previewtwice;mainshipped one. Both versions are byte-identical.should-fix—hooks/usePageContext.ts:19: the comment names a version, the only reason commit 2 exists.should-fix— Summary calls all 3 highs dev-graph. Two are production, underpayload←@payloadcms/sdk.
What was checked
- Built
56b6447, greppeddist/server.pnpm audit: 3 highs,bracespatched range empty. - Diffed npm tarballs of both
live-previewpackages, 3.88.0 against 3.90.2. @payloadcms/live-previewlock entries: 1 onmain, 2 here.- Read
usePageContext.tsandlive-preview/document.tsx; the latter imports a type only.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The line named `vike-react 0.6.29`, so every bump had to touch it — the moving target `docs/rules/code-comments.md` forbids. The module JSDoc already states that `usePageContext()` returns `undefined` off-provider, so only the `catch`'s own reason was left to carry. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012mJHFSsgnE2qC52UjswTR4
Its three siblings moved to ^3.90.2 while this exact pin stayed at 3.88.0, so the lockfile carried `@payloadcms/live-preview` twice where main carried it once. `pnpm why` now reports one version again. Both tarballs are byte-identical across 3.88.0 -> 3.90.2 bar their own version strings, and #63 recorded no reason for the exact pin. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012mJHFSsgnE2qC52UjswTR4
|
All three adversarial findings adopted. Pushed
Nothing rebutted, nothing asked. Re-verified on 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Summary
pnpm updatetakespnpm auditfrom 10 high to 3.Change outline
No source behaviour changes. Two shapes moved: the resolved dependency graph,
and one comment that named a version.
Contract — the advisory set
Five advisories leave, and which bump takes each. All five were in the dev
graph, and
wrangler's three ran on a developer's machine everypnpm prod:The two
undicirows do not disappear — they change parent. Onmainthesame vulnerable 7.29.0 sat under both
miniflareandpayload, and the auditreport printed only the
miniflarepath. Fixing that one makes thepayloadpath the one on screen, which is why
pnpm audit --prodnow names two highs itdid not appear to name before. Nothing moved into production; the report stopped
hiding where it already was.
pnpm audit --prodgives the exact path:Types — declared ranges
Files — one version-pinned claim, removed rather than refreshed
The comment named a version, so every bump had to touch it. The module JSDoc
already states the
undefinedbehaviour, so only thecatch's own reason wasleft to carry.
docs/rules/code-comments.mdforbids pointing at a movingtarget.
Preview
Test results
On
3437761:check.sh— lint,tsc --noEmit,test:run(80 files, 809 tests).pnpm build, which is what the Cloudflare preview runs.pnpm why @payloadcms/live-preview→ "Found 1 version", down from 2.pnpm build,grep -rl 'undici\|BalancedPool' dist/serverfinds nothing.pnpm exec wrangler --version→ 4.147.0, and it acceptswrangler.tomlunchanged,compatibility_date = "2025-09-06"included.Manual verification
pnpm prodonce. This is the only path thewranglerbump touches, andit is the one thing no automated gate here exercises — CI runs
pnpm build,not the Workers runtime. Confirm the Worker boots and a page renders.
Notes for reviewer
The judgement call worth checking: I did not add an
undicioverride. Thetwo
undicihighs stay becausepayloadpinsundiciat exactly7.29.0, and3.90.2 — the newest release — still does, so only a
pnpm.overridesentry couldmove it. They sit in the production graph, under
@payloadcms/richtext-lexical > payload. SahajAtlasWeb already carries thatexact override, so copying it would have looked like the house pattern.
I left it out on evidence: after
pnpm build,grep -rl undici dist/serverfinds nothing, so
undicinever reaches the Worker. Absent, not merelyunreferenced. Forcing
payloadonto a patch version it does not declare, toclear an audit row for code that does not ship, is a cost with no matching
benefit. Neither advisory is reachable regardless — we open no WebSocket through
undiciand use noBalancedPool. Say the word and I will add the overrideanyway if you would rather
pnpm audit --prodread clean.braceshas no fix at all.pnpm auditnames>=3.0.4as its patchedrange, and 3.0.3 is the newest version ever published, so that range is empty.
It arrives through
@ladle/react's glob walker, on patterns we author — devonly.
@payloadcms/*moved 3.88.0 → 3.90.2 butserver/payload-types.tsisuntouched. That file is a committed copy of SahajCloud's, re-synced by
pnpm types:cmsin its own bot PR when the producer moves — not by a clientpackage bump. No contract surface is in this diff.
Detail
Commits, one per behaviour:
chore(deps)— the lockfile and the declared floors.docs(hooks)— thevike-reactversion claim. Superseded by 4.fix(hooks)— drop the version from that comment entirely.fix(deps)— rejoinlive-preview-reactto the Payload set.Why
live-preview-reactmoved. Its three siblings went to^3.90.2whilethe exact pin stayed at 3.88.0, so the lockfile carried
@payloadcms/live-previewat both 3.88.0 (under the react wrapper) and 3.90.2(direct) where
maincarried one. I fetched both npm tarballs of both packagesand diffed them: identical across 3.88.0 → 3.90.2 bar their own version strings
and their
payloadpeer reference. #63 introduced the pin and records no reasonfor it.
How the
vike-reactclaim was verified, before it was deleted. Read off theinstalled 0.6.29: the React context is still created with an
undefineddefaultand
usePageContext()still returns it unguarded. The 809 passing tests rendercomponents bare, with no provider, so they exercise it too.
No security review ran, correctly. This repo's
securityReview.triggerPatterncoversserver/,pages/preview/,wrangler.toml,vite.config.ts, the Sentry configs,scripts/,.envand.dev.vars. The diff touchespackage.json,pnpm-lock.yamlandhooks/usePageContext.ts, so it does not match. The supply-chain question thepattern would have asked is answered above instead, against the built Worker
rather than the lockfile.
Reviewed with
/code-review-class reading of the full branch diff pluscomment-lint.mjs --base origin/main(no banned comment added). The/pr-review-toolkitplugin is not installed in a routine session.Not taken in this PR. Everything else
pnpm outdatedlists is a major:eslint10,typescript7,vite8,vitest5,@sentry/*11,@vitejs/plugin-react6,jose6,@types/node26. Each needs its own PR withits changelog read, and none may be batched or combined with a security fix.
🤖 Generated with Claude Code
https://claude.ai/code/session_012mJHFSsgnE2qC52UjswTR4