GitHub Advisoryadvisory · npm
GHSA-4xcv-9jjx-gfj3 Denial of Service in mem
MEDIUM
Official page ↗
- Ecosystem
- npm
- Packages
- mem
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-400
- Reviewed
- 2019-07-03
Affected packages
• npm mem: < 4.0.0 → fixed in 4.0.0
Description
Versions of `mem` prior to 4.0.0 are vulnerable to Denial of Service (DoS). The package fails to remove old values from the cache even after a value passes its `maxAge` property. This may allow attackers to exhaust the system's memory if they are able to abuse the application logging.
Recommendation
Upgrade to version 4.0.0 or later.
Related
Weakness · CWE (1)
- CWE-400 Uncontrolled Resource Consumption weakness