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

Abierto
#10,271 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 2 días

@reggi ya está trabajando en esto.

Desde el 24/11/2026.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript, node.js
Área
backend, devtools

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
JavaScript
Estrellas
10.3k
Forks
5k
Merge medio
4 d 11 h
PR fusionados (30 d)
26

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de npm/cli

Todos los issues de npm/cli

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.