open is a cross platform package that opens stuff like URLs, files, executables.
Affected versions of this package are vulnerable to Arbitrary Code Injection when unsanitized user input is passed in.
The package does come with the following warning in the readme:
The same care should be taken when calling open as if you were calling child_process.exec directly. If it is an executable it will run in a new shell.
open is replacing the
opn package, which is now deprecated. The older versions of
open are vulnerable.
open to the last version will prevent this vulnerability but is also likely to have unwanted effects since it now has a very different API.
open to version 6.0.0 or higher.
- Snyk ID
- 16 May, 2018
- 31 Mar, 2019