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);
Remediation
References
https://snyk.io/vuln/SNYK-JS-MOCK2EASY-572312
https://www.npmjs.com/package/mock2easy
Related Vulnerabilities
CVE-2022-25906 Vulnerability in npm package is-http2
CVE-2019-9737 Vulnerability in maven package org.webjars.bowergithub.pandao:editor.md
CVE-2023-49652 Vulnerability in maven package org.jenkins-ci.plugins:google-compute-engine
CVE-2023-1454 Vulnerability in maven package org.jeecgframework.boot:jeecg-boot-common