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://snyk.io/vuln/SNYK-JS-EXPRESSMOCKMIDDLEWARE-564120
https://github.com/LingyuCoder/express-mock-middleware/blob/master/lib/index.js#L39
Related Vulnerabilities
CVE-2022-28156 Vulnerability in maven package com.surenpi.jenkins:phoenix-autotest
CVE-2020-7677 Vulnerability in maven package org.webjars.npm:thenify
CVE-2020-7735 Vulnerability in npm package ng-packagr
CVE-2020-11020 Vulnerability in npm package faye
CVE-2021-20190 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind