{"id":"CVE-2022-37614","aliases":["CVE-2022-37614","GHSA-gmwp-3pwc-3j3g"],"related":[],"kind":"vulnerability","state":"published","title":"mockery is vulnerable to prototype pollution","summary":"Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad de contaminación de prototipos en la función enable en mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf por medio de la variable key en el archivo mockery.js","source":"nvd"}],"published":"2022-10-12T00:00:00.000Z","modified":"2026-06-17T04:55:09.200Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"2.1.0"}],"ecosystem":"npm","package":"mockery","purl":"pkg:npm/mockery","source":"ghsa"},{"ranges":[{"status":"affected","version":"2.1.0"}],"vendor":"mockery_project","product":"mockery","cpe":"cpe:2.3:a:mockery_project:mockery:2.1.0:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L119","tags":["third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L62","tags":["exploit","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/mfncooper/mockery/issues/77","tags":["issue-tracking","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37614","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mfncooper/mockery","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2025-05-15T15:05:06.947Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-37614","url":"https://www.cve.org/CVERecord?id=CVE-2022-37614","licence":"CVE Terms of Use","modified":"2025-05-15T15:05:50.801Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gmwp-3pwc-3j3g","url":"https://github.com/advisories/GHSA-gmwp-3pwc-3j3g","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:09.303Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-37614","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-37614","licence":"Public domain","modified":"2026-06-17T04:55:09.200Z"}],"updatedAt":"2026-11-25T22:58:15.614Z","epss":{"score":0.01948,"percentile":0.80881,"date":"2026-11-30T12:00:22.000Z"}}