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

Đang mở
#10,271 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@reggi đang làm issue này rồi.

Từ ngày 24/11/2026.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, node.js
Lĩnh vực
backend, devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
JavaScript
Star
10.3k
Fork
5k
Merge trung bình
4 ngày 11 giờ
Pull request đã merge (30 ngày)
26

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của npm/cli

Tất cả issue của npm/cli

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.