-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Description
Preliminary Checks
- This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
While using gatsby@5.14.3, npm explain multer shows that Gatsby directly depends on multer@1.4.5-lts.1, 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
- Run
npm install gatsby@5.14.3 - Run
npm explain multer - See that
multer@1.4.5-lts.1is 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
gatsby@5.14.3 includes multer@1.4.5-lts.1 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 --clipboardConfig Flags
No response