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)."
https://www.tenable.com/security/tns-2019-02
http://www.securityfocus.com/bid/95849
http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html