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-2023-26115 Vulnerability in maven package org.webjars.npm:word-wrap
CVE-2017-18924 Vulnerability in npm package oauth2-server
CVE-2020-36182 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2011-1026 Vulnerability in maven package org.apache.archiva:archiva
CVE-2023-1370 Vulnerability in maven package net.minidev:json-smart