Command Injection in open
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Code execution
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-77.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | open (npm) | before 6.0.0 | 6.0.0 | Patch available | GHSA-28xh-wpgr-7fm8 |
- open (npm) Vendor— Affected before 6.0.0 Fixed in 6.0.0 Patch available GHSA-28xh-wpgr-7fm8
Remediation
- Fix · GHSA-28xh-wpgr-7fm8 open (npm) Fixed in 6.0.0 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-28xh-wpgr-7fm8
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences