Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Express-Mock-Middleware Project | Express-Mock-Middleware | <= 0.0.6 |
Related Weaknesses (CWE)
References
- https://github.com/LingyuCoder/express-mock-middleware/blob/master/lib/index.js#Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-EXPRESSMOCKMIDDLEWARE-564120ExploitThird Party Advisory
- https://github.com/LingyuCoder/express-mock-middleware/blob/master/lib/index.js#Third Party Advisory
- https://snyk.io/vuln/SNYK-JS-EXPRESSMOCKMIDDLEWARE-564120ExploitThird Party Advisory
FAQ
What is CVE-2020-7616?
CVE-2020-7616 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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...
How severe is CVE-2020-7616?
CVE-2020-7616 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2020-7616?
Check the references section above for vendor advisories and patch information. Affected products include: Express-Mock-Middleware Project Express-Mock-Middleware.