Skip to content

[email protected] includes multer as a direct dependency #39304

@kelseyn12

Description

@kelseyn12

Preliminary Checks

Description

While using [email protected], npm explain multer shows that Gatsby directly depends on [email protected], which is vulnerable (GHSA-whgm-jr23-g3j9).

I’m not using any file-upload functionality, and there’s no plugin pulling it in — it appears to come straight from Gatsby core.

Can this be removed or made optional?

Thanks for all your work on Gatsby

Reproduction Link

https://github.com/gatsbyjs/gatsby-starter-minimal

Steps to Reproduce

  1. Run npm install [email protected]
  2. Run npm explain multer
  3. See that [email protected] is included directly by Gatsby

Expected Result

Gatsby should not include multer directly, as it is not needed for typical usage and brings in a high-severity vulnerability.

Actual Result

[email protected] includes [email protected] as a direct dependency, even though it's not required by any plugin or used in the project. This triggers a Dependabot alert for a known DoS vulnerability (GHSA-whgm-jr23-g3j9).

Environment

npx gatsby info --clipboard

Config Flags

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: triage neededIssue or pull request that need to be triaged and assigned to a reviewertype: bugAn issue or pull request relating to a bug in Gatsby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions