Amenazas en vivo

Todas las CVE / Pillarjs

CVE-2026-4867Pillarjs Path-to-regexp

Alta 7.5 Sin autenticación

Prioridad
60
CVSS 3.1
7.5
EPSS
—
Requiere autenticación
No
Publicada
26 mar 2026
Actualizada
17 jun 2026
Categoría
Aplicación · Multiplataforma
Debilidad (CWE)
CWE-1333
SSVC (CISA)
Explotación: ninguna · Automatizable: sí · Impacto técnico: parcial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Qué pasa

Impact: A bad regular expression is generated any time you have three or more parameters within a single segment, separated by something that is not a period (.). For example, /:a-:b-:c or /:a-:b-:c-:d. The backtrack protection added in path-to-regexp@0.1.12 only prevents ambiguity for two parameters. With three or more, the generated lookahead does not block single separator characters, so capture groups overlap and cause catastrophic backtracking. Patches: Upgrade to path-to-regexp@0.1.13 Custom regex patterns in route definitions (e.g., /:a-:b([^-/]+)-:c([^-/]+)) are not affected because they override the default capture group. Workarounds: All versions can be patched by providing a custom regular expression for parameters after the first in a single segment. As long as the custom regular expression does not match the text before the parameter, you will be safe. For example, change /:a-:b-:c to /:a-:b([^-/]+)-:c([^-/]+). If paths cannot be rewritten and versions cannot be upgraded, another alternative is to limit the URL length.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Path-to-regexp.
  2. Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCómo actualizar
npm path-to-regexp < 0.1.13 0.1.13 npm install path-to-regexp@0.1.13
npm path-to-regexp ≥ 0.2.0 < 1.9.0 1.9.0 npm install path-to-regexp@1.9.0
npm path-to-regexp < 0.1.10 0.1.10 npm install path-to-regexp@0.1.10
npm path-to-regexp ≥ 7.0.0 < 8.0.0 8.0.0 npm install path-to-regexp@8.0.0
npm path-to-regexp ≥ 2.0.0 < 3.3.0 3.3.0 npm install path-to-regexp@3.3.0
npm path-to-regexp ≥ 4.0.0 < 6.3.0 6.3.0 npm install path-to-regexp@6.3.0

Según OSV / GitHub Advisories (GHSA-37ch-88jc-xwx2, GHSA-9wv6-86v2-598j). Verifica la versión en tu lockfile antes de actualizar.

Productos afectados (CPE)

FabricanteProductoVersiones
pillarjspath-to-regexp< 0.1.13

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.