SCA: security update for Moment.js, moment (GHSA-8hfj-j24r-96c4)

high Tenable Self-Hosted Container Security Plugin ID 412705

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2022-24785)

See Also

https://github.com/advisories/GHSA-8hfj-j24r-96c4

Plugin Details

Severity: High

ID: 412705

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5.7

Percentile: 96.65

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N

CVSS Score Source: CVE-2022-24785

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/4/2022

Vulnerability Publication Date: 4/4/2022

Reference Information

CVE: CVE-2022-24785