[BUG] npm 12.2.2 bundles glob and minimatch versions affected by October 2026 advisories
メンテナーはふだん 2 日以内に返信
@jeffkl がすでに取り組んでいます。
2026年11月16日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 18/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, node.js
- 領域
- build-system, devops, security
調査の方向性
The bundled copies live under node_modules/npm/node_modules/glob and minimatch in the published npm 12.2.2 tarball, so the fix is in npm's own dependency declarations and regenerated bundle rather than the top-level overrides shown in the repro. Start by reading the package.json and lockfile of the npm/cli repository to find which internal consumers pin glob and minimatch. Done means a refreshed bundle with patched versions passes install, ci, pack and publish dry-run checks, and the audit no longer reports GHSA-3g3m-2fjr-6pw4 or GHSA-g3hv-75wg-m249.
索引モデルが issue の本文から書いたものです。
説明
Problem
The registry latest release, npm 12.2.2 (published November 4, 2026), still bundles [email protected] and [email protected]. Both match public reviewed advisory ranges:
- https://github.com/advisories/GHSA-3g3m-2fjr-6pw4 — glob cancellation can leave filesystem traversal running; patched in 14.0.2.
- https://github.com/advisories/GHSA-g3hv-75wg-m249 — minimatch pattern preprocessing can amplify CPU/memory use; patched in 11.0.1 (current latest 11.0.8).
This is a dependency inventory/audit reproduction, not a claim that every npm command exposes an exploitable path. No resource-exhaustion payload is necessary to reproduce the audit result.
Minimal reproduction
With supported Node.js (tested on Node 26), create this package.json in an empty directory:
{
"private": true,
"dependencies": { "npm": "12.2.2" },
"overrides": { "glob": "14.0.2", "minimatch": "11.0.8" }
}
Run npm install --package-lock-only --ignore-scripts, then npm audit --package-lock-only --json --audit-level=low (the metadata-only reproduction uses npm 11.20.0 to inspect the npm 12.2.2 package). Inspect the lockfile entries node_modules/npm/node_modules/glob and node_modules/npm/node_modules/minimatch: they remain 13.0.6 and 10.2.5 despite the consumer overrides. The audit identifies the two advisories and propagates them through npm's internal parents (21 moderate package findings, not 21 independent vulnerabilities).
The same two bundled versions are present in the published npm tarball. An application's ordinary audit does not cover a separately installed global npm CLI, so an otherwise clean application audit cannot establish that the package-manager tool is clean.
Expected / suggested change
Please migrate npm's internal glob/minimatch consumers to compatible patched versions, regenerate the bundled dependency tree, and publish a new CLI release. Updating the top-level declarations alone will not replace nested bundled copies. Validate install, ci, pack, and publish dry-run behavior with the refreshed bundle; preserve supported Node patch floors. If a supported consumer repair procedure exists for bundled npm dependencies, documenting it would also help.
Local handling
In https://github.com/link-foundation/lino-i18n/pull/44 we retain the latest official npm CLI for its CI/release behavior and keep it outside the application dependency lock. We tried consumer overrides as above; they do not repair the bundle. We have not replaced incompatible npm internals in place or downgraded to the old npm version proposed by audit. The requirement that all tooling have no unresolved advisories remains explicitly unfinished pending a supported upstream fix.
Related issue searches for the two exact advisory IDs returned no results on November 13, 2026. Older minimatch/brace-expansion reports concern different advisory IDs.
- 主要言語
- JavaScript
- スター
- 10.3k
- フォーク
- 5k
- 平均マージ
- 4日 11時間
- マージ済み PR(30日)
- 26
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
npm/cli のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 2 日以内に返信
-
[BUG] scripts/dependency-graph.js splits npm-cli-repos.txt on os.EOL, so DEPENDENCIES.md depends on the checkout's line endings対応中かも @saruk-vedant が 7 日前に担当しました。 オープンBug Needs Triage Triage Requested
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 2 日以内に返信
-
[BUG] npm pkg delete removes the first array item for a nonexistent property対応中かも @drawliin が 42 日前に担当しました。 オープンcmd:delete Priority 3
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 2 日以内に返信
-
create node pr: Node.js 20 deprecation & `DEP0040` warnings logged再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンEngineering Priority 1
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
メンテナーはふだん 2 日以内に返信
-
`npm audit signatures` does not report how many packages it skipped for want of registry keys対応中かも @greenlincoln05 が 63 日前に担当しました。 オープンPriority 3
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信
似ている issue
-
docs: add SECURITY.md vulnerability reporting policy対応中かも @AK-Lmn が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 72/100
flisk-sh/linux2wasm#12 ·
メンテナーはふだん 1 日以内に返信
-
possible bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Mintplex-Labs/anything-llm#7388 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 60/100
メンテナーはふだん 1 日以内に返信
-
v6: Minified bootstrap.min.css is missing header info対応中かも @lazerg が今日担当しました。 オープンbug build confirmed has-pr v6
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
githubnext/gh-aw-workshop#6332 ·
メンテナーはふだん 1 日以内に返信