All reports
Medium

Denial of Service in mem

Affected versions

npmmem
Affected versions
< 4.0.0
Fixed version
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.

Links