CVE-2022-24785
Momentjs Moment vulnerability
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.
Affected products
Moment, Tenable.sc, Active Iq, Fedora, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Momentjs Moment runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- security.netapp.com/advisory/ntap-20220513-0006/ · Third Party Advisory
- github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4
- nvd.nist.gov/vuln/detail/CVE-2022-24785
- github.com/moment/moment/commit/4211bfc8f15746be4019bba557e29a7ba83d54c5
- www.tenable.com/security/tns-2022-09
- lists.debian.org/debian-lts-announce/2023/01/msg00035.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O
- nvd.nist.gov/vuln/detail/CVE-2022-24785
- cve.org/CVERecord?id=CVE-2022-24785
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.