Skip to content
OpenAdvisories

Description

Glob matches files using patterns the shell uses. Starting in version 10.2.0 and prior to versions 10.5.0 and 11.1.0, the glob CLI contains a command injection vulnerability in its -c/--cmd option that allows arbitrary command execution when processing files with malicious names. When glob -c <command> <patterns> are used, matched filenames are passed to a shell with shell: true, enabling shell metacharacters in filenames to trigger command injection and achieve arbitrary code execution under the user or CI account privileges. This issue has been patched in versions 10.5.0 and 11.1.0.

Affected products

VendorProductAffectedFixed
isaacs node-glob >= 10.2.0, < 10.5.0, >= 11.0.0, < 11.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed opa 1.11.0-1.1 openSUSE-SU-2025:15775-1
ReleasePackageFixed inAdvisory
Alpine v3.22 npm 11.6.4-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jupyter-base-notebook 7.6.3-r2 —
Wolfi rolling lerna 9.0.1-r1 —
Wolfi rolling node-gyp 12.2.0-r0 —
Wolfi rolling npm 11.6.3-r0 —
Wolfi rolling npm-doc 11.6.4-r0 —
Wolfi rolling pnpm-stage0 No fix yet —
Wolfi rolling prism 5.14.3-r1 —
Wolfi rolling pulumi +3 3.209.0-r0 —
Wolfi rolling py3.10-jupyterlab +3 4.6.1-r1 —
Wolfi rolling renovate 42.14.2-r0 —
Wolfi rolling saf 1.5.2-r0 —
Wolfi rolling ts-patch 4.0.1-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm glob >= 11.0.0, < 11.1.0 11.1.0 GHSA-5j98-mcp5-4vw2
npm glob >= 10.2.0, < 10.5.0 10.5.0 GHSA-5j98-mcp5-4vw2

Advisories 10

References