CVE-2022-37614
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
mockery (npm)up to 2.1.0GitHub Advisory Database
mockery_project mockery2.1.0NVD

All scores

CISA-ADP9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-1321

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

Sources

SourceRecordLicence
CVE ListCVE-2022-37614 changed 2025-05-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-gmwp-3pwc-3j3g changed 2023-11-08CC-BY-4.0
NVDCVE-2022-37614 changed 2026-06-17Public domain