CVE-2022-37614
9.8critical
mockery is vulnerable to prototype pollution
- Severity
- 9.8critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.95% (higher than 81% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-gmwp-3pwc-3j3g
Description
Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| mockery (npm) | up to 2.1.0 | GitHub Advisory Database |
| mockery_project mockery | 2.1.0 | NVD |
All scores
| CISA-ADP | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.
NVD (es)
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
References
| https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L119 | third-party-advisory, web | |
| https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L62 | exploit, 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-37614 changed 2025-05-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gmwp-3pwc-3j3g changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2022-37614 changed 2026-06-17 | Public domain |