Advisory

GHSA-vm67-7vmg-66vm

Also known as: CVE-2021-23348, SNYK-JS-PORTPROCESSES-1078536

Summary

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)");

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-04-06 17:24 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

portprocesses

npm · All systems

Affected

  • introduced 0, fixed 1.0.5 (semver)

Fixed versions

1.0.5

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences