Moment.js 2.18.x < 2.29.4 Regular Expression Denial of Service

high Web App Scanning Plugin ID 113312

Synopsis

Moment.js 2.18.x < 2.29.4 Regular Expression Denial of Service

Description

According to its self-reported version number, Moment.js is 2.18.x prior to 2.29.4. Therefore, it may be affected by a regular expression denial of service vulnerability via the preprocessRFC2822() function in from-string.js, when processing a very long crafted string.

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.29.4 or later.

See Also

https://github.com/moment/moment/issues/6012

Plugin Details

Severity: High

ID: 113312

Type: remote

Published: 7/19/2022

Updated: 3/14/2023

Scan Template: basic, full, pci, scan

Risk Information

VPR

Risk Factor: Medium

Score: 5.1

CVSS v2

Risk Factor: Medium

Base Score: 5

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

CVSS Score Source: Tenable

CVSS v3

Risk Factor: High

Base Score: 7.5

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

CVSS Score Source: Tenable

Vulnerability Information

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 7/6/2022

Vulnerability Publication Date: 7/6/2022

Reference Information