Vulnerability · Published Jul 29, 2020 · Assigned by snyk
CVE-2020-7697Command Injection
Critical 9.8
In plain English
A critical-severity security flaw in mock2easy. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities).
Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)2.0%top 18.7% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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);
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | mock2easy | no fix listed | GHSA-g4xj-wcq6-qwx5 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-MOCK2EASY-572312 x_refsource_MISC
- https://www.npmjs.com/package/mock2easy x_refsource_MISC