CVE-2020-7616
Vulnerability in n/a express-mock-middleware
Check your servers for CVE-2020-7616
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2020-7616 affects express-mock-middleware, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
express-mock-middleware through 0.0.6 is vulnerable to Prototype Pollution. Exported functions by the package can be tricked into adding or modifying properties of the `Object.prototype`. Exploitation of this vulnerability requires creation of a new directory where an attack code can be placed which will then be exported by `express-mock-middleware`. As such, this is considered to be a low risk.
Exploitation
EPSS 1.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 70.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
express-mock-middleware
n/a
|
affected All versions including 0.0.6
|
Is my server affected?
Find the installed version of express-mock-middleware and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i express-mock-middleware
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-7616 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-7616RHEL, Rocky, Alma, Fedora
rpm -q express-mock-middleware
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-7616Alpine
apk list --installed | grep -i express-mock-middlewareWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2020-7616
trivy image --scanners vuln IMAGE | grep CVE-2020-7616
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://snyk.io/vuln/SNYK-JS-EXPRESSMOCKMIDDLEWARE-564120 snyk.io
- https://github.com/LingyuCoder/express-mock-middleware/blob/master/lib/index.js#L39 github.com
Source: the record CVE-2020-7616 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse