Incorrect Regular Expression Affecting momentjs package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
9.91% (95th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL10-MOMENTJS-9886875
  • published28 Apr 2025
  • disclosed26 Jan 2016

Introduced: 26 Jan 2016

CVE-2016-4055  (opens in a new tab)
CWE-185  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:10 momentjs.

NVD Description

Note: Versions mentioned in the description apply only to the upstream momentjs package and not the momentjs package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

The duration function in the moment package before 2.11.2 for Node.js allows remote attackers to cause a denial of service (CPU consumption) via a long string, aka a "regular expression Denial of Service (ReDoS)."

CVSS Base Scores

version 3.1