GHSA-g4xj-wcq6-qwx5
Dashboard / Vulnerabilities / GHSA-g4xj-wcq6-qwx5
Summary: Code injection in mock2easy
Details: 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);```
References: https://nvd.nist.gov/vuln/detail/CVE-2020-7697, https://github.com/appLhui/mock2easy/blob/1da728fa0f61cc29fb415f0677e54ad4902261d3/routes/index.js#L132-L139, https://snyk.io/vuln/SNYK-JS-MOCK2EASY-572312, https://www.npmjs.com/package/mock2easy
Affected packages
Package
Name: mock2easy
Purl: pkg:npm/mock2easy
Affected ranges
Type: SEMVER
Events:
