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.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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.

*