[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 小时
- 30 天内合并 PR
- 26
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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可能重新可做 关联的 PR 已关闭且未合并。 未关闭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
-
documentation
难度 1/5 1 小时以内 新手友好度 88/100
githubnext/gh-aw-workshop#6332 ·
维护者通常 1 天内回复
-
App Designer bug
难度 2/5 1-3 小时 新手友好度 78/100
avniproject/avni-webapp#1858 ·
-
bug
难度 1/5 1 小时以内 新手友好度 96/100
hiero-ledger/hiero-sdk-js#4834 ·
维护者通常 1 天内回复
-
[组件名称] 描述问题的标题未关闭🐞 bug 🧐 unconfirmed
难度 2/5 1-3 小时 新手友好度 68/100
Tencent/tdesign-miniprogram#4744 · 1 条评论 ·
维护者通常 1 天内回复
-
Y-axis tooltip hides near the bottom of the plot while the y crosshair stays visible可能已有人在做 @lazerg 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 82/100
apexcharts/apexcharts.js#5449 ·
维护者通常 3 天内回复