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.
Remediation
References
https://github.com/LingyuCoder/express-mock-middleware/blob/master/lib/index.js#L39
https://snyk.io/vuln/SNYK-JS-EXPRESSMOCKMIDDLEWARE-564120
Related Vulnerabilities
CVE-2023-37947 Vulnerability in maven package org.openshift.jenkins:openshift-login
CVE-2023-34981 Vulnerability in maven package org.apache.tomcat:tomcat-coyote
CVE-2013-4170 Vulnerability in npm package ember
CVE-2020-11972 Vulnerability in maven package org.apache.camel:camel-rabbitmq
CVE-2018-11698 Vulnerability in maven package org.webjars.npm:node-sass