lsof@0.1.0 vulnerabilities

List open file descriptors for your node process

Direct Vulnerabilities

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

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • H
Command Injection

lsof is a lsof processor for node.

Affected versions of this package are vulnerable to Command Injection. Multiple areas of the package is vulnerable to command injection. Every exported method used by the packages uses the exec function to parse user input.

PoC by JHU System Security Lab

var root = require("lsof");
var attack_code = "& echo vulnerable > create.txt &";
root.rawTcpPort(attack_code, function(){});

How to fix Command Injection?

There is no fixed version for lsof.

*