CRITICAL
Rule Definition
The moment module before 2.19.3 for Node.js is prone to a regular expression denial of service via a crafted date string, a different vulnerability than CVE-2016-4055.
Remediation
Upgrade the version of node-serialize
Violation Code Sample
moment("20120620", "YYYYMMDD").fromNow(); // 7 years ago
Reference
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-18214
https://www.npmjs.com/advisories/532
Related Technologies
Technical Criterion
CWE-676 - Use of Potentially Dangerous Function
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.