GitHub Advisoryadvisory · npm
GHSA-g4xj-wcq6-qwx5 Code injection in mock2easy
CRITICAL
Official page ↗
- Aliases
- CVE-2020-7697
- Ecosystem
- npm
- Packages
- mock2easy
- 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-77
- Reviewed
- 2021-05-06
Affected packages
• npm mock2easy: <= 0.0.24 (no fix yet)
Description
This affects all versions up to and including version 0.0.24 of package mock2easy. a malicious user could inject commands through the `_data` variable:
Affected Area
```js
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);```
Related
Alias · CVE (1)
- CVE-2020-7697 This affects all versions of package mock2easy. vulnerability
Weakness · CWE (1)
- CWE-77 Improper Neutralization of Special Elements used in a Command weakness