Skip to content

Command Injection in kill-port

High severity GitHub Reviewed Published Mar 25, 2019 to the GitHub Advisory Database • Updated Sep 8, 2023

Package

npm kill-port (npm)

Affected versions

< 1.3.2

Patched versions

1.3.2

Description

Versions of kill-port prior to 1.3.2 are vulnerable to Command Injection. The package does not validate user input on the kill function. This may allow attackers to run arbitrary commands in the system if user input (such as the port number) is passed directly to the function.

Recommendation

Upgrade to version 1.3.2 or later.

References

Published to the GitHub Advisory Database Mar 25, 2019
Reviewed Jun 16, 2020
Last updated Sep 8, 2023

Severity

High
8.1
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2019-5414

GHSA ID

GHSA-pmv6-gf98-p3r5

Source code

No known source code
Checking history
See something to contribute? Suggest improvements for this vulnerability.