# GHSA-4xcv-9jjx-gfj3: Denial of Service in mem

- Severity: Medium 5.1 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-07-05T21:07:58.000Z
- Modified: 2021-08-17T15:44:45.000Z
- Weaknesses: CWE-400

## 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.

(As written by GitHub Advisory Database.)

## Affected

- mem (npm): before 4.0.0

## References

- <https://github.com/sindresorhus/mem/commit/da4e4398cb27b602de3bd55f746efa9b4a31702b> (web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1623744> (web)
- <https://snyk.io/vuln/npm:mem:20180117> (web)
- <https://www.npmjs.com/advisories/1084> (web)

## Sources

- GitHub Advisory Database: [GHSA-4xcv-9jjx-gfj3](https://github.com/advisories/GHSA-4xcv-9jjx-gfj3), CC-BY-4.0, modified 2021-08-17

---

Page: https://cve.day/GHSA-4xcv-9jjx-gfj3 · Whole record: https://cve.day/GHSA-4xcv-9jjx-gfj3.json · Rebuilt by cve.day 2026-11-25T22:56:44.084Z
