Command Injection Affecting find-process package, versions <1.4.5


Severity

Recommended
0.0
high
0
10

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

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-FINDPROCESS-1090284
  • published25 Jun 2021
  • disclosed1 Apr 2021
  • creditUnknown

Introduced: 1 Apr 2021

CVE NOT AVAILABLE CWE-78  (opens in a new tab)

How to fix?

Upgrade find-process to version 1.4.5 or higher.

Overview

find-process is a find process info by port/pid/name etc.

Affected versions of this package are vulnerable to Command Injection. When getting the information by PID and port number, the user needs to inform a value, which is used in a concatenation of an OS command. There is no user input check to know if the PID or the port is a number, as such, an attacker may send a malicious string that will be interpreted as an OS command.

CVSS Scores

version 3.1