# CVE-2022-37614: mockery is vulnerable to prototype pollution

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.95%, higher than 81% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-10-12T00:00:00.000Z
- Modified: 2026-06-17T04:55:09.200Z
- Also known as: GHSA-gmwp-3pwc-3j3g
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- mockery (npm): up to 2.1.0
- mockery_project mockery: 2.1.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L62> (exploit, third-party-advisory, web)
- <https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L119> (third-party-advisory, web)
- <https://github.com/mfncooper/mockery/issues/77> (issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-37614> (advisory)
- <https://github.com/mfncooper/mockery> (package)

## Sources

- CVE List: [CVE-2022-37614](https://www.cve.org/CVERecord?id=CVE-2022-37614), CVE Terms of Use, modified 2025-05-15
- GitHub Advisory Database: [GHSA-gmwp-3pwc-3j3g](https://github.com/advisories/GHSA-gmwp-3pwc-3j3g), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-37614](https://nvd.nist.gov/vuln/detail/CVE-2022-37614), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-37614 · Whole record: https://cve.day/CVE-2022-37614.json · Rebuilt by cve.day 2026-11-25T22:58:15.614Z
