Skip to content

[BUG] vulnerable glob dependency #8741

@keptt

Description

@keptt

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

Running npm audit or a trivy scanner flags a high CVE-2025-64756 vulnerability due to [email protected]. [email protected] fixes the issue. The problem is that this breaks application builds that make use of tools such as trivy scanner.
Notice that the CVE itself doesn't affect npm, as the issue is only in the cli interface of glob, while npm uses its library interface.

Expected Behavior

npm should not bundle a vulnerable version of glob and therefore not break builds due to security scans

Steps To Reproduce

  1. In this environment:

Node.js version: 20.17.0 (or higher)
npm version: 11.6.2

  1. Run 'npm audit'
  2. See error:
glob  10.3.7 - 11.0.3
Severity: high
glob CLI: Command injection via -c/--cmd executes matches with shell:true - https://github.com/advisories/GHSA-5j98-mcp5-4vw2
fix available via `npm audit fix`
node_modules/glob

Environment

  • npm: 11.6.2
  • Node.js: 20.17.0
  • OS Name: macOS Sequoia 15.6.1
  • System Model Name: MacBook Pro M3
  • npm config:
; "user" config from /Users/root1/.npmrc

//registry.npmjs.org/:_authToken = (protected)

; "project" config from /Users/root1/code/npm/.npmrc

package-lock = true

; node bin location = /Users/root1/.nvm/versions/node/v20.17.0/bin/node
; node version = v20.17.0
; npm local prefix = /Users/root1/code/npm
; npm version = 11.6.2
; cwd = /Users/root1/code/npm
; HOME = /Users/root1
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingNeeds Triageneeds review for next steps

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions