Moment.js 2.29.2 < 2.31.0 Path Traversal

medium Web App Scanning Plugin ID 115563

Synopsis

Moment.js 2.29.2 < 2.31.0 Path Traversal

Description

According to its self-reported version number, Moment.js is 2.29.2 or later but prior to 2.31.0. Therefore, it may be affected by a path traversal vulnerability in the moment.locale() function. When an application passes an attacker-influenced non-string value as locale name, a crafted object can bypass the locale name validation introduced to fix CVE-2022-24785, causing Moment.js to load a file from an attacker-chosen path. Only server-side (npm) usage is affected. (CVE-2026-17495)

Note that the scanner has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Moment.js version 2.31.0 or later.

See Also

https://github.com/moment/moment/security/advisories/GHSA-4p3w-j4w9-5jqw

Plugin Details

Severity: Medium

ID: 115563

Type: Version Based

Published: 10/2/2026

Updated: 10/2/2026

Scan Template: basic, full, pci, scan

Risk Information

VPR

Risk Factor: Low

Score: 3

Percentile: 23.6

CVSS v2

Risk Factor: Medium

Base Score: 5.4

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

CVSS Score Source: CVE-2026-17495

CVSS v3

Risk Factor: Medium

Base Score: 5.9

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

CVSS Score Source: CVE-2026-17495

Vulnerability Information

CPE: cpe:2.3:a:moment_project:moment:*:*:*:*:*:*:*:*

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 9/14/2026

Reference Information

CVE: CVE-2026-17495