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

Aperta
#10,271 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@reggi ci sta già lavorando.

Dal 24/11/2026.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, node.js
Ambito
backend, devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
JavaScript
Stelle
10.3k
Fork
5k
Merge medio
4g 11h
PR unite (30g)
26

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di npm/cli

Tutte le issue di npm/cli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.