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.
References
Link | Resource |
---|---|
https://snyk.io/vuln/SNYK-JS-EXPRESSMOCKMIDDLEWARE-564120 | Exploit Third Party Advisory |
https://github.com/LingyuCoder/express-mock-middleware/blob/master/lib/index.js#L39 | Third Party Advisory |
Configurations
Configuration 1 (hide)
|
Information
Published : 2020-04-07 07:15
Updated : 2022-12-02 11:57
NVD link : CVE-2020-7616
Mitre link : CVE-2020-7616
JSON object : View
CWE
CWE-1321
Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Products Affected
express-mock-middleware_project
- express-mock-middleware