Rapid7 Vulnerability & Exploit Database

Ubuntu: USN-5559-1 (CVE-2022-24785): Moment.js vulnerabilities

Back to Search

Ubuntu: USN-5559-1 (CVE-2022-24785): Moment.js vulnerabilities

Severity
5
CVSS
(AV:N/AC:L/Au:N/C:N/I:P/A:N)
Published
04/04/2022
Created
08/29/2022
Added
08/11/2022
Modified
08/11/2022

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.

Solution(s)

  • ubuntu-upgrade-libjs-moment
  • ubuntu-upgrade-node-moment

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;