{"id":"GHSA-v39h-qm32-8gwq","summary":"Improperly Controlled Modification of Dynamically-Determined Object Attributes in express-mock-middleware","details":"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.","aliases":["CVE-2020-7616"],"modified":"2026-03-13T22:11:18.287185Z","published":"2021-12-09T19:57:29Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-05-25T17:28:15Z","nvd_published_at":"2020-04-07T14:15:00Z","cwe_ids":["CWE-1321","CWE-915"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7616"},{"type":"WEB","url":"https://github.com/LingyuCoder/express-mock-middleware/blob/master/lib/index.js#L39"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-EXPRESSMOCKMIDDLEWARE-564120"}],"affected":[{"package":{"name":"express-mock-middleware","ecosystem":"npm","purl":"pkg:npm/express-mock-middleware"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.0.6"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/12/GHSA-v39h-qm32-8gwq/GHSA-v39h-qm32-8gwq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}