Skip to content

fix(plugin-cloud-storage): remove unused find-node-modules dependency - #18645

Open
MokiMeow wants to merge 1 commit into
payloadcms:mainfrom
MokiMeow:fix/plugin-cloud-storage-unused-find-node-modules
Open

MokiMeow wants to merge 1 commit into
payloadcms:mainfrom
MokiMeow:fix/plugin-cloud-storage-unused-find-node-modules

Conversation

@MokiMeow

@MokiMeow MokiMeow commented Oct 9, 2026

Copy link
Copy Markdown

What?

Removes the find-node-modules dependency and its @types/find-node-modules dev dependency from @payloadcms/plugin-cloud-storage.

Why?

Nothing in the repo imports find-node-modules. A search of the source finds it only in this package's package.json, so it does nothing at runtime. It still gets installed for every app that uses a @payloadcms/storage-* adapter, and it pulls in findup-sync, micromatch and braces, which npm audit flags as GHSA-vfj7-8cjw-p6xm. Users can't fix that with overrides, as described in the issue.

How?

  • Delete the two lines from packages/plugin-cloud-storage/package.json.
  • Regenerate pnpm-lock.yaml with the repo's pinned pnpm (11.9.0). The lockfile change is only removals (about 100 lines), covering find-node-modules and the packages that only it needed (findup-sync, detect-file, expand-tilde, global-modules, global-prefix, homedir-polyfill, is-windows, merge, parse-passwd, resolve-dir). Nothing was added or upgraded.

I checked that pnpm install --lockfile-only --frozen-lockfile passes on the result. I did not run a full build.

The issue reports this on 3.90.2, so a 3.x backport would be the same two-line change, and I can open that too if you want it.

Fixes #18623

Nothing in the package imports find-node-modules. It still pulled
findup-sync, micromatch and braces into every app that uses a
@payloadcms/storage-* adapter, which `npm audit` reports as
GHSA-vfj7-8cjw-p6xm. Remove it and its @types package.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plugin-cloud-storage: unused find-node-modules dependency pulls in braces (GHSA-vfj7-8cjw-p6xm, no patched version)

1 participant