ps-kill@1.0.0 vulnerabilities

Kill processes with ease

Direct Vulnerabilities

Known vulnerabilities in the ps-kill package. This does not include vulnerabilities belonging to this package’s dependencies.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

Fix for free
VulnerabilityVulnerable Version
  • M
Arbitrary Command Injection

ps-kill is a Kill processes with ease

Affected versions of this package are vulnerable to Arbitrary Command Injection. If (attacker-controlled) user input is given to the kill function, it is possible for an attacker to execute arbitrary commands. This is due to use of the child_process exec function without input sanitization in the index.js file.

PoC (provided by reporter):

var ps_kill = require('ps-kill');

ps_kill.kill('$(touch success)',function(){});

How to fix Arbitrary Command Injection?

There is no fixed version for ps-kill.

*