ADVISORIES

GitHub Advisory Database

GHSA-vm67-7vmg-66vm

Arbitrary Command Injection in portprocesses

Details

Impact

An Arbitrary Command Injection vulnerability was reported in portprocesses impacting versions <= 1.0.4.

Example (Proof of Concept)

The following example demonstrates the vulnerability and will run touch success therefore creating a file named success.

const portprocesses = require("portprocesses");

portprocesses.killProcess("$(touch success)");

Affected packages

EcosystemPackageAffected versions
npmportprocesses
All versions before 1.0.5 (fixed in 1.0.5)

References