Repository navigation
chore(deps): bump next to 16.2.11 for the reachable Server Actions DoS - #732
sydevs-bot wants to merge 1 commit into
Conversation
|
🚅 Deployed to the SahajCloud-pr-732 environment in sahajcloud
1 service not affected by this PR
|
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Right shape, right size. One file changes, the manifest stays untouched, and the core claim holds: OSV lists four HIGH advisories against next 16.2.6 and none against 16.2.11. Narrowing #721's blanket refresh to next alone is the better call. No finding asks for code to change. All three concern the body, which on a lockfile-only PR is the reviewable surface.
Findings
- should-fix —
js-yamlis held back as a bump "with no advisory". 4.3.0 carries a HIGH one. Line 124. - should-fix — "it clears none of them" is wrong. Four of the 22 move in this diff. Line 3466.
- consider — about 20 collateral bumps and a new native optional dependency. Line 1296.
What was checked — #721, the PR body, git diff origin/main...HEAD. Every packages: key diffed against main: 107 removed, 124 added. The parent of each surviving vulnerable copy traced. package.json, .node-version, ci.yml. The three Server Action files behind the reachability claim take no auth. OSV queried for eight packages. Both checks green.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
|
All three review threads answered. Body only — no code changed, so the commit stays Both should-fix findings were correct. Both were body claims, not lockfile mistakes:
The security claim is measured now. A new What else moves section names the collateral re-resolutions and the new native optional dependency. @Ardnived — both held-back packages want a ticket. #721 is the place. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
GHSA-m99w-x7hq-7vfj is a denial of service in App Router Server Actions. It is reachable here: three public, unauthenticated Server Actions live at registrations/feedback, registrations/unsubscribe and events/verify. package.json already declares ^16.2.6, so the fix needs only a lockfile refresh. The manifest is untouched. This clears all four next advisories that applied to 16.2.6 — the other three (custom-server SSRF, rewrites SSRF, Turbopack middleware bypass) were unreachable, but they go with the same bump. High advisories drop from 26 to 22. A blanket `pnpm update` was tried first and rejected: it broke the tree twice. js-yaml 4.3.0 -> 4.3.2 drops the `binaryTag` export that @apidevtools/json-schema-ref-parser imports, failing three integration suites; rrule-temporal 1.4.5 -> 1.6.0 retypes its API against temporal-spec, which does not unify with @js-temporal/polyfill and fails typecheck. Both are unrelated to any advisory, so neither is bumped here. The remaining 22 high advisories are transitives under payload, next and the build chain. They do not move with this bump, contrary to what the ticket expected — each needs its parent to re-resolve. Refs #721 Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_016i6UGeRbzyfgnctnYJhbKH
78b0d6c to
55b821a
Compare
|
Superseded by #741, which bumps 16.2.11 leaves two critical unauthenticated RCE advisories open — GHSA-2xp9-vwfh-vxw4 (Image Optimization API) and GHSA-p293-qw3h-jr36 (Windows hosts) — both #741 also carries the Two notes from here survive and are quoted on #741: the 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
…and #735 (#741) * chore(deps): bump next to 16.3.4 and sharp to 0.35.4 Supersedes #732 (next 16.2.11) and #735 (sharp 0.35.4 + an overrides entry). One bump replaces both, and clears strictly more. The failure this prevents: two CRITICAL advisories that neither open PR reaches. Both are unauthenticated remote code execution, and both are fixed only in next 16.3.3 — GHSA-2xp9-vwfh-vxw4 RCE in the Image Optimization API >=16.0.0 <16.3.3 GHSA-p293-qw3h-jr36 RCE on Windows-hosted servers >=16.0.0 <16.3.3 16.2.11, the target of #732, is inside both ranges. No sharp bump reaches either. next 16.3.4 declares sharp ^0.35.4 as its own optional dependency, so bumping our direct `sharp` to ^0.35.4 leaves one copy in the tree with no overrides entry at all. #735 needed one only because next 16.2.x declares ^0.34.5, a caret on a 0.x line, which pins the minor. Measured against origin/main's lockfile on the same day: high+critical 31 -> 23, moderate 20 -> 15. next 6 -> 0, sharp 2 -> 0. eslint-config-next moves with next to keep the lint rules on the same minor. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KMbSpgLANf3FccYW7xJPRv * docs: say Next.js 16, not 15 Both lines predate this PR — main is already on next 16.2.6 — but a PR that moves the Next minor is where a reader will check them. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KMbSpgLANf3FccYW7xJPRv --------- Co-authored-by: sydevs-bot <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]>
Summary
next16.2.6 → 16.2.11, a lockfile refresh only.package.jsonalready declares^16.2.6, so the manifest is untouched.nexthigh advisories. High advisories drop from 26 to 22.Why this one is reachable
src/app/(frontend)/registrations/feedback/actions.ts,.../unsubscribe/actions.tsandsrc/app/(frontend)/events/verify/actions.tsare Server Actions with no auth in front of them. The other three advisories that applied to 16.2.6 are not reachable here — custom-server SSRF (we run Next's own standalone server perrailway.toml), rewrites SSRF (next.config.mjsdeclares none), Turbopack middleware bypass (the build is plainnext build) — but the same bump clears them.The blanket refresh in the ticket does not work
#721 suggests
pnpm updatein range. That was tried first and broke the tree twice, both unrelated to any advisory:js-yaml4.3.0 → 4.3.2binaryTagexport that@apidevtools/json-schema-ref-parserimports — 3 integration suites fail to loadrrule-temporal1.4.5 → 1.6.0temporal-spec, which does not unify with@js-temporal/polyfill—pnpm typecheckfails insrc/lib/schedule/scheduleHooks.tsA blanket update also rewrote every dependency range in
package.json: pnpm 11'supdateedits the manifest, which is not what "a lockfile refresh, not a manifest change" asks for.It also does not deliver what the ticket predicted — but not because nothing moves. #721 expected "the same lockfile refresh should clear most of" the other high advisories. The audit total for them is unchanged, and the two runs below prove it: every package except
nextkeeps its exact advisory count.The reason is duplication, not immobility. Four of the 22 do gain a patched copy in this diff —
fast-uri3.1.7,postcss8.5.28,nanoid3.3.18,browserslist4.28.9, each added beside the version already there rather than replacing it. The vulnerable copies survive because their parents pin them:[email protected],[email protected]and@babel/[email protected]still resolve the old ones. So each of the 22 needs its parent to re-resolve, which an in-rangenextrefresh cannot force.What else moves
A
nextlockfile refresh is not a one-package diff. The peer-suffix cascade also re-resolves about 20 unrelated packages, among themrollup4.62.2 → 4.63.1 (with its 25 native binaries),terser5.49.0 → 5.51.2 under both vite and webpack,dompurify3.4.12 → 3.4.15, plusws,acorn,node-abi,enhanced-resolve,js-base64,viteandvitest.It also adds one native optional dependency that did not exist before,
@napi-rs/lzma-linux-x64-gnu, whoseenginesexclude.node-version22.17.0. Being optional, pnpm skips it, which is why CI stayed green — worth knowing rather than discovering later.Still open on #721
sharp0.34.5 → 0.35.x is not in this PR. It is out of range (caret on0.xpins the minor), so it needs an edited manifest and its changelog read — the ticket asks for that to be its own PR, and it is #735. #721 stays open; this PR only references it.Test results
pnpm lint,pnpm typecheck,pnpm typecheck:testspayload's resolved treepnpm peers check: ✓ no issuesThe security claim, measured rather than asserted.
pnpm audit --audit-level=high --jsonrun twice, once againstorigin/main's lockfile and once against this branch, grouped by package:nextfast-uribrace-expansionbrowserslistimage-sizenanoidjs-yamlpostcsssharpsocket.io-parserundici⚠ The int lane needs
VITEST_INT_MAX_FORKS=2on a 4-CPU box; the default fork count gives nondeterministic failures across unrelated suites.Notes for reviewer
rrule-temporalis a pure maintenance bump.js-yaml4.3.0 is not — it carries GHSA-5p4m-2wfm-xmqj, quadratic CPU consumption in!!omapresolution, fixed in 4.3.2, and it is one of the 22 highs the table above still counts.The hold is still the right call, but it should be held for a stated reason rather than a wrong one.
js-yamlreaches the production tree throughpayload > json-schema-to-typescript > @apidevtools/json-schema-ref-parser, and through@eslint/eslintrcin dev. Every one of those call sites parses repo-local schema files during type generation or linting, never request input, so no untrusted YAML reachesyaml.load()— and 4.3.2 removes thebinaryTagexport thatjson-schema-ref-parserimports, so taking the fix breaks three integration suites.Neither hold is encoded — no override was added — so a future refresh meets them again. The existing
js-yaml: ^4.3.0override inpnpm-workspace.yamldoes not pin it back: 4.3.2 satisfies that range. Both holds want their own ticket; chore(deps): next 16.2.6 carries a reachable Server Actions DoS, and sharp needs an out-of-range bump #721 is the natural place to record them, and that is a call for @Ardnived rather than something this PR should widen to cover.Refs #721
🤖 Written by the sydevs autonomous loop — see what this is
🤖 Generated with Claude Code
https://claude.ai/code/session_016i6UGeRbzyfgnctnYJhbKH