GHSA-28xh-wpgr-7fm8 Command Injection in open

Not scored Published
Exploited in the wild
Not known
Fix
Available

What is GHSA-28xh-wpgr-7fm8?

GHSA-28xh-wpgr-7fm8 is a vulnerability in open, published on 20 Jun 2019.

Official description

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:

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.

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.

Which versions are affected by GHSA-28xh-wpgr-7fm8?

2 open source packages ship an affected version, including open.

PackageAffectedFixed in
open npmAll versions6.0.0
open npmAll versions6.0.0

How do I fix GHSA-28xh-wpgr-7fm8?

Upgrade open to 6.0.0 or later.

Is GHSA-28xh-wpgr-7fm8 being exploited?

There is no known exploitation of GHSA-28xh-wpgr-7fm8 in the wild and no public exploit code.

Sources

Is GHSA-28xh-wpgr-7fm8 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free