CVE-2022-24785Momentjs Moment
Alta 7.5 Sin autenticación
Seguir: esta CVE · Momentjs · Momentjs Moment Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 60
- CVSS 3.1
- 7.5
- EPSS
- 2.7% probabilidad de explotación en 30 días · percentil 87
- Requiere autenticación
- No
- Publicada
- 4 abr 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- 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:H/A:N
Qué pasa
Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string is directly used to switch moment locale. This problem is patched in 2.29.2, and the patch can be applied to all affected versions. As a workaround, sanitize the user-provided locale name before passing it to Moment.js.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Moment.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| NuGet | Moment.js |
< 2.29.2 |
2.29.2 |
dotnet add package Moment.js --version 2.29.2 |
| npm | moment |
< 2.29.2 |
2.29.2 |
npm install moment@2.29.2 |
Según OSV / GitHub Advisories (GHSA-8hfj-j24r-96c4). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| momentjs | moment | ≥ 1.0.1 < 2.29.2 |
| momentjs | moment | ≥ 1.0.1 < 2.29.2 |
| tenable | tenable.sc | < 5.21.0 |
| netapp | active_iq | todas |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
| debian | debian_linux | 10.0 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch
- github.com Vendor Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.netapp.com Third Party Advisory
- www.tenable.com Patch Release Notes Third Party Advisory
- security.netapp.com