Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. moment
  4. ›
  5. CVE-2016-4055

CVE-2016-4055: Regular Expression Denial of Service in moment

October 24, 2017 (updated September 7, 2021)

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).”

References

  • www.openwall.com/lists/oss-security/2016/04/20/11
  • www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
  • www.securityfocus.com/bid/95849
  • github.com/advisories/GHSA-87vv-r9j6-g5qv
  • lists.apache.org/thread.html/10f0f3aefd51444d1198c65f44ffdf2d78ca3359423dbc1c168c9731@%3Cdev.flink.apache.org%3E
  • lists.apache.org/thread.html/17ff53f7999e74fbe3cc0ceb4e1c3b00b180b7c5afec8e978837bc49@%3Cuser.flink.apache.org%3E
  • lists.apache.org/thread.html/52bafac05ad174000ea465fe275fd3cc7bd5c25535a7631c0bc9bfb2@%3Cuser.flink.apache.org%3E
  • lists.apache.org/thread.html/54df3aeb4239b64b50b356f0ca6f986e3c4ca5b84c515dce077c7854@%3Cuser.flink.apache.org%3E
  • nodesecurity.io/advisories/55
  • nvd.nist.gov/vuln/detail/CVE-2016-4055
  • www.npmjs.com/advisories/55
  • www.tenable.com/security/tns-2019-02

Code Behaviors & Features

Detect and mitigate CVE-2016-4055 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.11.2

Fixed versions

  • 2.11.2

Solution

Upgrade to version 2.11.2 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-399

Source file

npm/moment/CVE-2016-4055.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:36 +0000.