xopen@1.0.0 vulnerabilities

Open a file in its default application, across platforms

Direct Vulnerabilities

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

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free
VulnerabilityVulnerable Version
  • C
Command Injection

xopen is a package that provides a dead-simple Promise API for opening files from Node on Windows, macOS, and Linux.

Affected versions of this package are vulnerable to Command Injection. The injection point is located in line 14 in index.js in the exported function xopen(filepath)

##PoC:

var root = require("xopen");
var attack_code = "& touch JHU";
root(attack_code);

How to fix Command Injection?

There is no fixed version for xopen.

*