Skip to content

fix(deps): bump the Payload family to 3.87.1, dropping vulnerable image-size - #856

Merged
sydevs-bot merged 3 commits into
mainfrom
claude/chore-deps-payload
Sep 28, 2026
Merged

sydevs-bot merged 3 commits into
mainfrom
claude/chore-deps-payload

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Clears both high advisories pnpm audit reported: [email protected] reached us through [email protected], and payload 3.87.0 replaced it with image-dimensions.
  • All eleven @payloadcms/* packages move 3.86.0 → 3.87.1 together, because the family does not support mixed versions.
  • pnpm audit --audit-level=high goes from 2 high to 0. Everything else the lockfile does is a dedupe onto versions already present — image-dimensions is the only package that enters the graph.

Changes

  • package.json / pnpm-lock.yaml — payload, db-postgres, email-nodemailer, next, plugin-cloud-storage, plugin-form-builder, plugin-nested-docs, plugin-seo, richtext-lexical, ui, typescript-plugin: 3.86.0 → 3.87.1. Transitively @payloadcms/drizzle, graphql and translations follow. [email protected] leaves the graph; [email protected] enters it.
  • Beyond the family, 11 non-Payload packages change resolved version for some consumer — @babel/code-frame, @babel/helper-module-imports, @babel/runtime, @types/estree, @types/node, acorn, ajv, pg-protocol, pump, tinyglobby, ws. Each lands on a version already in the lockfile, and 4 unreferenced duplicates drop out. ws 8.21.0 → 8.21.3, under engine.io and socket.io-adapter, is the only runtime edge among them.
  • src/migrations/AGENTS.md — the exact-version rule stated the family's version twice, once as the current pin and once in the mixed-version example. Both restated what package.json owns, so every bump had to hand-edit them or leave an assertion that goes stale silently. The rule now names no version.

Preview

  • Admin panel — the whole admin UI is Payload's, so a boot here is the broadest check
  • Images collection — upload an image; the orientation hook reads its dimensions
  • Health

Test results

  • Lean gate: ✓ lint, typecheck (src), typecheck (tests), unit lane — 2196 tests in 163 files. Re-run on fb965d3.
  • Full gate (check.sh --full): ✓ pnpm test (unit + integration) and the Railway pnpm build, on 983f13f
  • pnpm install --frozen-lockfile: ✓ clean against the changed lockfile (1282 entries)
  • pnpm generate:types: no diff — 3.87.1's generator produces the same src/payload-types.ts, so nothing changes for WeMeditateWeb's pnpm types:cms
  • Build: ✓

Manual verification

  1. Upload a portrait and a landscape image in the Images collection, and confirm each gets the right orientation. The dimension library under payload changed, even though our own call site did not.
  2. Open a document with a Lexical rich-text field and save it. 3.87.1 fixes link-drawer form state in that editor.

Notes for reviewer

  • The drizzle-kit patch still applies. src/migrations/AGENTS.md says to re-check the patch key on any family bump. @payloadcms/[email protected] still pins drizzle-kit to exactly 0.31.7 and drizzle-orm to 0.45.2, and the lockfile's patch_hash for [email protected] is byte-identical. No migration surface moves.
  • Stopped at 3.87.1. The follow-up target is 3.88.x, not the latest 3.90.2. This is a security fix, so it should stay revertable on its own. The reason to go to 3.88.x next is cross-repo, not "latest": SahajAtlasWeb pins @payloadcms/[email protected] exactly, and WeMeditateWeb pins that plus live-preview, richtext-lexical and sdk at ^3.88.0. Live preview and Lexical JSON are formats shared with those repos, so this repo currently sits a minor behind its own consumers.
  • Two verified against Payload 3.86.0 breadcrumbs are left alone on purpose — src/migrations/AGENTS.md:29 and src/globals/AGENTS.md:110. Both record what someone actually reproduced a behaviour against, and this run re-verified neither.
Detail

The advisories. GHSA-5p2g-fcmc-qvqq (high) — image-size's JXL and HEIF parsers loop forever on crafted input. GHSA-w3rx-r6r6-pgpr (high) — the ICNS parser does the same. Both patched in [email protected]. Reachable here rather than theoretical: payload called image-size to read upload dimensions, and this app takes uploads.

Why a bump and not an override. A pnpm.overrides entry forcing image-size@^2.0.3 would also have cleared the audit, and left a permanent pin behind to explain. Since 3.87.0 drops the dependency outright, the bump removes the package instead of patching it.

Our own image-size is a separate copy and was never vulnerable. image-size@^2.0.4 is a direct dependency, used by src/collections/Images/hooks/detectOrientationHook.ts. It resolved above the patched floor already, which is why the audit named only the payload>image-size paths. It is untouched here.

What the lockfile does beyond the family. Verified by diffing the packages: keys and every snapshots: dependency edge between origin/main and this branch. No package name leaves the graph — our own image-size copy stays — and image-dimensions is the only one that enters. The 4 duplicates that drop are @babel/[email protected], @babel/[email protected], @babel/[email protected] and [email protected], each unreferenced after the dedupe.

What was read before bumping. The 3.87.0 and 3.87.1 release notes list no breaking changes, removals or deprecations. 3.87.0 is the release that swapped image-size for image-dimensions (payloadcms/payload#17571). 3.87.1 is a patch carrying mongoose, undici and MCP SDK security fixes — none of which we reach, since this app is on postgres.

Unrelated finding, recorded here rather than acted on. The push warned that GitHub sees 4 high advisories on main, where pnpm audit reported 2. The moderate count agrees at 6. This PR clears the 2 that pnpm audit names. Whatever the other 2 are, they are not visible from the registry audit endpoint, and finding them needs the Dependabot alert list. No ticket filed — this run does not open issues without a human verb.

Filed by the Monday dependency survey. Not the first Monday of the month, so no routine minor/patch batch rides along.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AgM7wdYR2wE6AGjbWWXGX6

…ge-size

[email protected] depended on [email protected], which carries two high
advisories: GHSA-5p2g-fcmc-qvqq (JXL and HEIF parsers loop forever) and
GHSA-w3rx-r6r6-pgpr (the ICNS parser does the same). Both are reachable
through uploaded media, since payload calls image-size to read upload
dimensions.

payload 3.87.0 replaced image-size with image-dimensions, so the bump
removes the vulnerable copy from the graph rather than pinning a patched
one. Our own direct image-size (^2.0.4, used by the Images orientation
hook) was already past the patched floor and is untouched.

All eleven @payloadcms/* packages move together, because the family does
not support mixed versions. Checked before bumping:

- 3.87.0 and 3.87.1 release notes list no breaking changes. 3.87.1 is a
  patch, carrying mongoose, undici and MCP SDK security fixes.
- @payloadcms/[email protected] still pins drizzle-kit to exactly
  0.31.7, so patches/[email protected] still applies. The
  lockfile's patch_hash entry is unchanged.
- drizzle-orm stays at 0.45.2, so no schema or migration surface moves.

Stopping at 3.87.1 rather than 3.90.2 keeps this revertable as a security
fix. Catching up to the latest minor belongs in a routine batch.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AgM7wdYR2wE6AGjbWWXGX6
The exact-version rule was stated against 3.86.0, and used
`@payloadcms/[email protected]` beside `[email protected]` as its example of the
mixed-version break. The family is on 3.87.1 now, so that example had
become the state the repo is actually in.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AgM7wdYR2wE6AGjbWWXGX6
@railway-app

railway-app Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-856 environment in sahajcloud

Service Status Web Updated
SahajCloud ✅ Success (View Logs) Web Sep 28, 2026 at 9:02 am UTC
1 service not affected by this PR
  • mailpit

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Sep 28, 2026
@sydevs-bot

sydevs-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 08:53Z address-review · attempt 1 · session · done
  • 08:53Z address-review · attempt 1 · session
  • 08:43Z adversarial-review · attempt 1 · session · done
  • 08:43Z adversarial-review · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Adversarial review

Right shape and size: three files, and a bump beats pinning image-size via pnpm.overrides.

The notes miss one thing: both consumers already run the family at 3.88.x, pinning @payloadcms/[email protected] exactly. Live preview and Lexical JSON are cross-repo formats, so this repo sits a minor behind its clients. Do not widen this PR for it — the follow-up target is 3.88.x, not 3.90.2.

GitHub reports 4 high advisories where pnpm audit sees 2. The other 2 survive only in a <details>. Worth a ticket.

Findings

  • should-fix pnpm-lock.yaml:3766 — the no-other-changes claim is inaccurate.
  • consider package.json:67 — consumers sit a minor ahead.
  • consider AGENTS.md:94 — the pin is stated twice.

What was checked

  • Both lockfiles' packages: keys: 13 family packages move, image-size out, image-dimensions in, 4 duplicates dropped, no new third-party.
  • Consumers: both package.jsons, live-preview/protocol.ts, RichText/. src/payload-types.ts is not in the diff, so types:cms is unaffected.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread pnpm-lock.yaml Resolved
Comment thread package.json Resolved
Comment thread src/migrations/AGENTS.md Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Sep 28, 2026
The paragraph stated the family's exact version twice — once as the
current pin and once in the mixed-version example. Both restate what
package.json owns, so each bump had to hand-edit them or leave an
assertion that silently goes stale. The rule does not need the number.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AgLGfKxFwQ7JYautJQAZt6
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-856 September 28, 2026 09:00 Destroyed
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Adopted all three review threads. Pushed fb965d3.

  • should-fix, pnpm-lock.yaml — confirmed against both lockfiles and reworded in the body. 11 non-Payload packages move, each onto a version already present; only image-dimensions enters. Body only, so no commit.
  • consider, package.json — confirmed the skew against both consumers. The follow-up target is now 3.88.x, not 3.90.2.
  • consider, AGENTS.md — fb965d3 drops both version literals from the pin rule.

Not actioned: the 4-vs-2 advisory gap the review called worth a ticket. This run does not open issues without a human verb, so the body records it instead.

Lean gate green on fb965d3 — lint, both typechecks, 2196 tests.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Sep 28, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review September 28, 2026 09:13
@sydevs-bot
sydevs-bot requested a review from Ardnived September 28, 2026 09:13

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-856 — fb965d3a Deployed Sep 28, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants