Scanners flag bundled [email protected] for CVE-2026-84947, but GitHub’s Advisory Database doesn’t list 6.x as affected

未关闭
#10,271 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 2 天内回复

@reggi 已经在做这个了。

开始于 2026年11月24日。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
领域
backend, devtools

调研方向

The issue traces the bundled dependency through node-gyp and identifies undici's lib/interceptor/dump.js as the vulnerable code, but does not name npm's bundle configuration files. Start by checking how npm 12 selects and bundles node-gyp's undici dependency, then review related issues #10111 and #10163. Done means the latest line bundles a fixed undici version, or the project documents that it will stay on undici 6.x without a fix.

由索引模型根据 Issue 内容生成。

描述

Bug deps-updates

[email protected] (and 11.21.2) bundle [email protected] (via node-gyp, undici ^6.25.0). Vulnerability scanners flag it for CVE-2026-84947 / GHSA-2gqq-gqf2-x968 (undici interceptors.dump() ends a chunked response early once maxSize is reached, so the caller sees a truncated 200).

The GitHub advisory lists undici 7.1.0-7.29.0 and 8.0.0-8.10.1, but the 6.x line has the same code since 6.17.0, the first release that ships lib/interceptor/dump.js. In 6.29.1, DumpHandler.onData does if (this.#size >= this.#maxSize) { this.#dumped = true; ... this.#handler.onComplete([]) }, i.e. it completes the response normally; the 7.29.1 fix aborts instead (diff of lib/interceptor/dump.js between 7.29.0 and 7.29.1). Sonatype's data also lists CVE-2026-84947 on undici 6.17.0 and later, and no 6.x release has a fix (latest 6.29.1).

npm does not call the dump interceptor (no reference outside undici in the npm 11.20.0 tree), so this is about bundled-dependency hygiene for consumers that scan the package. Request: bundle an undici at 7.29.1 / 8.10.2 or newer on the latest line (npm 12's engines is ^22.22.2 || ^24.15.0 || >=26.0.0, within undici 7's >=20.18.1), or say that undici 6.x is the intended line and no fix is planned.

Related: #10111 and #10163 (bundled undici refreshed within 6.x).

主要语言
JavaScript
星标
10.3k
派生
5k
平均合并
4 天 11 小时
30 天内合并 PR
26

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

npm/cli 的其他 Issue

查看 npm/cli 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。