{"id":"CVE-2022-37614","aliases":["EUVD-2022-7097","GHSA-gmwp-3pwc-3j3g"],"status":"published","title":"mockery is vulnerable to prototype pollution","description":"Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01565,"percentile":0.75507,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-1321"],"published":"2022-10-12T00:00:00Z","modified":"2026-06-17T04:55:09Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"mockery","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"2.1.0"}]}]},{"source":"osv","ecosystem":"npm","package":"mockery","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"2.1.0"}]}]}],"products":[{"vendor":"mockery_project","product":"mockery"}],"references":[{"url":"https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L119","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L62","tags":["x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/mfncooper/mockery/issues/77","tags":["x_transferred","Issue Tracking","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37614","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-gmwp-3pwc-3j3g"},{"url":"https://github.com/mfncooper/mockery","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-37614","description":"Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.","status":"published","published":"2022-10-12T00:00:00Z","modified":"2025-05-15T15:05:50.801Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T14:34:26.977054Z"}],"euvd":[{"id":"EUVD-2022-7097","description":"Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.","status":"published","published":"2022-10-12T00:00:00Z","modified":"2025-05-15T15:05:50Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T20:32:46.52057Z"}],"ghsa":[{"id":"GHSA-gmwp-3pwc-3j3g","title":"mockery is vulnerable to prototype pollution","description":"Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.","status":"published","published":"2022-10-12T19:00:41Z","modified":"2023-07-28T21:01:12Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T14:36:58.760727Z"}],"nvd":[{"id":"CVE-2022-37614","description":"Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.","status":"published","published":"2022-10-12T12:15:09.4Z","modified":"2026-06-17T04:55:09.2Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T14:07:29.52424Z"}],"osv":[{"id":"GHSA-gmwp-3pwc-3j3g","title":"mockery is vulnerable to prototype pollution","description":"Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.","status":"published","published":"2022-10-12T19:00:41Z","modified":"2023-11-08T04:10:09.303137Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T15:46:48.191583Z"}]}}
