{"id":"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: \n\nAffected Area\n\n```js\nrequire('../server/getJsonByCurl')(mock2easy, function(error, stdout) {\n    if (error) {\n        return res.json(500, error);\n    }\n    res.json(JSON.parse(stdout));\n}, '', _data.interfaceUrl, query, _data.cookie, _data.interfaceType);```","aliases":["CVE-2020-7697"],"modified":"2023-11-08T04:04:05.440369Z","published":"2021-05-06T18:25:58Z","database_specific":{"cwe_ids":["CWE-77"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-05-06T18:23:33Z","nvd_published_at":"2020-07-29T13:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-7697"},{"type":"WEB","url":"https://github.com/appLhui/mock2easy/blob/1da728fa0f61cc29fb415f0677e54ad4902261d3/routes/index.js#L132-L139"},{"type":"WEB","url":"https://snyk.io/vuln/SNYK-JS-MOCK2EASY-572312"},{"type":"WEB","url":"https://www.npmjs.com/package/mock2easy"}],"affected":[{"package":{"name":"mock2easy","ecosystem":"npm","purl":"pkg:npm/mock2easy"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.0.24"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-g4xj-wcq6-qwx5/GHSA-g4xj-wcq6-qwx5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}