UnratednpmAmendedPublished
Command Injection in open
GHSA-28xh-wpgr-7fm8
- Affected
- npm open < 6.0.0
- Fixed in
- 6.0.0· Vendor fix available
- Issue
- Versions of open before 6.0.0 are vulnerable to command injection when unsanitized user input is passed in. The package does come with the following warning in the readme: Recommendation open is now the deprecated opn package. Upgrading to the latest version is likely have unwanted effects since it now has a very different API but will prevent this vulnerability.
Recommended action: Upgrade to 6.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.