Name | CVE-2022-24785 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3295-1 |
Debian Bugs | 1009327 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
node-moment (PTS) | stretch | 2.17.1+ds-1 | vulnerable |
buster (security), buster, buster (lts) | 2.24.0+ds-1+deb10u1 | fixed | |
bullseye | 2.29.1+ds-2+deb11u2 | fixed | |
sid, trixie, bookworm | 2.29.4+ds-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
node-moment | source | stretch | (unfixed) | end-of-life | ||
node-moment | source | buster | 2.24.0+ds-1+deb10u1 | DLA-3295-1 | ||
node-moment | source | bullseye | 2.29.1+ds-2+deb11u1 | |||
node-moment | source | (unstable) | 2.29.2+ds-1 | 1009327 |
[stretch] - node-moment <end-of-life> (Nodejs in stretch not covered by security support)
https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4
https://github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5 (2.29.2)