Critical severityNVD Advisory· Published Jul 29, 2020· Updated Sep 17, 2024
Command Injection
CVE-2020-7697
Description
This affects all versions of package mock2easy. a malicious user could inject commands through the _data variable: Affected Area require('../server/getJsonByCurl')(mock2easy, function (error, stdout) { if (error) { return res.json(500, error); } res.json(JSON.parse(stdout)); }, '', _data.interfaceUrl, query, _data.cookie,_data.interfaceType);
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
mock2easynpm | <= 0.0.24 | — |
Affected products
2- mock2easy/mock2easydescription
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-g4xj-wcq6-qwx5ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-7697ghsaADVISORY
- github.com/appLhui/mock2easy/blob/1da728fa0f61cc29fb415f0677e54ad4902261d3/routes/index.jsghsaWEB
- snyk.io/vuln/SNYK-JS-MOCK2EASY-572312ghsax_refsource_MISCWEB
- www.npmjs.com/package/mock2easyghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.