Command Injection Affecting mock2easy package, versions *


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.94% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MOCK2EASY-572312
  • published23 Jul 2020
  • disclosed15 Jun 2020
  • creditSnyk Security Team

Introduced: 15 Jun 2020

CVE-2020-7697  (opens in a new tab)
CWE-79  (opens in a new tab)
First added by Snyk

How to fix?

There is no fixed version for mock2easy.

Overview

Affected versions of this package are vulnerable to Command Injection 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);

References

CVSS Scores

version 3.1