{"id":"GHSA-4xcv-9jjx-gfj3","aliases":["GHSA-4xcv-9jjx-gfj3"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service in mem","summary":"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.\n\n\n## Recommendation\n\nUpgrade to version 4.0.0 or later.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\n\n## Recommendation\n\nUpgrade to version 4.0.0 or later.","format":"markdown","source":"ghsa"}],"published":"2019-07-05T21:07:58.000Z","modified":"2021-08-17T15:44:45.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.1,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.0.0"}],"ecosystem":"npm","package":"mem","purl":"pkg:npm/mem","source":"ghsa"}],"references":[{"url":"https://github.com/sindresorhus/mem/commit/da4e4398cb27b602de3bd55f746efa9b4a31702b","tags":["web"],"sources":["ghsa"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1623744","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/npm:mem:20180117","tags":["web"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1084","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4xcv-9jjx-gfj3","url":"https://github.com/advisories/GHSA-4xcv-9jjx-gfj3","licence":"CC-BY-4.0","modified":"2021-08-17T15:44:45.000Z"}],"updatedAt":"2026-11-25T22:56:44.084Z"}