GitHub Advisory Database
GHSA-5fw9-fq32-wv5p
OS Command Injection in node-notifier
Details
This affects the package node-notifier before 8.0.1. It allows an attacker to run arbitrary commands on Linux machines due to the options params not being sanitised when being passed an array.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | node-notifier | All versions before 8.0.1 (fixed in 8.0.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-7789
- https://github.com/mikaelbr/node-notifier/commit/5d62799dab88505a709cd032653b2320c5813fce
- https://github.com/mikaelbr/node-notifier/blob/master/lib/utils.js%23L303
- https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1050371
- https://snyk.io/vuln/SNYK-JS-NODENOTIFIER-1035794