Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. mockery
  4. ›
  5. CVE-2022-37614

CVE-2022-37614: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

October 12, 2022 (updated October 14, 2022)

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

References

  • github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js
  • github.com/mfncooper/mockery/blob/822f0566fd6d72af8c943ae5ca2aa92e516aa2cf/mockery.js
  • github.com/mfncooper/mockery/issues/77
  • nvd.nist.gov/vuln/detail/CVE-2022-37614

Code Behaviors & Features

Detect and mitigate CVE-2022-37614 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

Version 2.1.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/mockery/CVE-2022-37614.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.