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

- Severity: Critical (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-06-20T15:35:49.000Z
- Modified: 2020-08-31T18:31:51.000Z
- Weaknesses: CWE-77

## 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.

(As written by GitHub Advisory Database.)

## Affected

- open (npm): before 6.0.0

## References

- <https://github.com/pwnall/node-open/issues/68> (web)
- <https://github.com/pwnall/node-open/issues/69> (web)
- <https://hackerone.com/reports/319473> (web)
- <https://www.npmjs.com/advisories/663> (web)

## Sources

- GitHub Advisory Database: [GHSA-28xh-wpgr-7fm8](https://github.com/advisories/GHSA-28xh-wpgr-7fm8), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-28xh-wpgr-7fm8 · Whole record: https://cve.day/GHSA-28xh-wpgr-7fm8.json · Rebuilt by cve.day 2026-11-25T22:56:43.586Z
