Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open Beginner friendly
#18,623 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@MokiMeow is already working on this.

Since Oct 9, 2026.

  • #18645 by @MokiMeow — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Domain
cloud, security

Research direction

The change is in packages/plugin-cloud-storage/package.json: remove find-node-modules from dependencies and @types/find-node-modules from devDependencies. First run grep -rn "find-node-modules" packages/plugin-cloud-storage to confirm nothing else uses it. Done when both entries are gone, the package still builds and its tests pass, and npm audit no longer reports the braces chain for storage-s3.

Written by the indexing model from the issue text.

Description

Bug plugin: cloud-storage plugin: storage-* status: needs-triage v3
Describe the Bug

@payloadcms/plugin-cloud-storage declares find-node-modules as a runtime dependency, but no code in the package uses it. Because of it, every app using any @payloadcms/storage-* adapter inherits this chain:

@payloadcms/storage-s3 > @payloadcms/plugin-cloud-storage > [email protected] > [email protected] > [email protected] > [email protected]

npm audit reports 6 high findings for GHSA-vfj7-8cjw-p6xm. The advisory covers braces <= 3.0.3 and lists no patched version. The braces maintainer has rejected the report (micromatch/braces#70), so a fixed release is unlikely, and micromatch 4.0.8 / findup-sync 5.0.0 are already the latest versions. Users can't fix this with overrides.

Evidence that the dependency is unused:

  • main (c27fe28): find-node-modules appears only in packages/plugin-cloud-storage/package.json (dependencies line 63, @types/find-node-modules in devDependencies line 67). GitHub code search for find-node-modules and findNodeModules finds no other file.
  • Published 3.90.2: none of the 125 files in dist/ reference it.
  • Runtime: booting Payload 3.90.2 with @payloadcms/storage-s3 under a module.registerHooks resolve logger resolved 5,581 modules and never loaded find-node-modules, findup-sync, micromatch or braces. A control run that required find-node-modules directly was caught by the same hook.
  • next build (16.4.0): no .nft.json trace or server chunk includes any of the four packages.

Proposed fix: remove find-node-modules from dependencies and @types/find-node-modules from devDependencies in packages/plugin-cloud-storage/package.json. Happy to open the PR.

Link to the code that reproduces this issue

https://github.com/payloadcms/payload/blob/c27fe2828ba246215ab06b82af728863dfba6d9b/packages/plugin-cloud-storage/package.json#L63

Reproduction Steps
  1. npm init -y && npm i @payloadcms/[email protected]
  2. npm audit
  3. See 6 high findings for braces (GHSA-vfj7-8cjw-p6xm) through @payloadcms/plugin-cloud-storage > find-node-modules.
  4. grep -rn "find-node-modules" node_modules/@payloadcms/plugin-cloud-storage/dist returns nothing.
Which area(s) are affected?

plugin: cloud-storage, plugin: storage-*

Environment Info
Binaries:
  Node: 24.21.0
  npm: 12.2.0
Relevant Packages:
  payload: 3.90.2
  next: 16.4.0
  @payloadcms/plugin-cloud-storage: 3.90.2
  @payloadcms/storage-s3: 3.90.2
  react: 19.3.0
Operating System: macOS (Darwin 27.0.0)
Dominant language
TypeScript
Stars
45.3k
Forks
4.3k
Avg merge
1d 21h
Merged PRs (30d)
272

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from payloadcms/payload

All issues in payloadcms/payload

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.