CVEvulnerability
CVE-2020-7616
5.3 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2020-04-07
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CVSS 2.0 ([email protected])
- 5.0 MEDIUM — AV:N/AC:L/Au:N/C:N/I:P/A:N
- Weaknesses
- CWE-1321
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.
Affected configurations
• express-mock-middleware project express-mock-middleware (<= 0.0.6)
Related
Weakness · CWE (1)
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
References
- https://github.com/LingyuCoder/express-mock-middleware/blob/master/lib/index.js#L39 Third Party Advisory
- 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
- https://snyk.io/vuln/SNYK-JS-EXPRESSMOCKMIDDLEWARE-564120 Exploit, Third Party Advisory