VDB
Sign up
HIGH7.5

GHSA-fc42-h7q4-qp8h

Command Injection in killport

Quick fix

GHSA-fc42-h7q4-qp8h — killport: upgrade to the fixed version with the command below.

npm install killport@1.0.2

Details

This affects the package killport before 1.0.2. If (attacker-controlled) user input is given, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization. Running this PoC will cause the command touch success to be executed, leading to the creation of a file called success.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/killport
Introduced in: 0Fixed in: 1.0.2
Fixnpm install killport@1.0.2

References