GitHub Advisoryadvisory · npm
GHSA-gmwp-3pwc-3j3g mockery is vulnerable to prototype pollution
CRITICAL
Official page ↗
- Aliases
- CVE-2022-37614
- Ecosystem
- npm
- Packages
- mockery
- Severity
- Critical
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-1321
- Reviewed
- 2023-07-28
Affected packages
• npm mockery: <= 2.1.0 (no fix yet)
Description
Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via the key variable in mockery.js.
Related
Alias · CVE (1)
- CVE-2022-37614 Prototype pollution vulnerability in function enable in mockery.js in mfncooper mockery commit 822f0566fd6d72af8c943ae5ca2aa92e516aa2cf via… vulnerability
Weakness · CWE (1)
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-37614 advisory
- https://github.com/mfncooper/mockery/issues/77 web
- https://github.com/mfncooper/mockery package
- https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L119 web
- https://github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js#L62 web