CVE-2020-7789: OS Command Injection in node-notifier

node-notifier Updated 02 Oct 2025

Summary

21/12/2020
Yes i
Moderate
5.6

CVE-2020-7789: OS Command Injection in node-notifier. Affects node-notifier versions < 8.0.1. Fixed in 8.0.1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

node-notifier is an npm package that provides a simple way to display native system notifications on various platforms. It is commonly used in Node.js applications to send notifications to users. However, versions before 8.0.1 are vulnerable to OS command injection. This vulnerability allows an attacker to execute arbitrary commands on Linux machines by exploiting the lack of sanitization of options params when passed as an array.

Vulnerability Detail

The OS command injection vulnerability in node-notifier arises from the insecure handling of user-supplied input. By crafting a malicious array of options, an attacker can inject arbitrary commands that will be executed on the target Linux machine. This can lead to unauthorized access, data leakage, or even complete compromise of the system. The vulnerability has a CVSS score of 5.6, indicating a moderate severity level.

How To Fix

Latest published version: 11.0.0 as of 22 Oct 2026

npm install node-notifier@11.0.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

8.0.1

This is the first release that contains the fix.

npm install node-notifier@8.0.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround is to avoid passing user-controlled input as an array in the options params. Instead, it is recommended to sanitize and validate user input before passing it to the node-notifier package.

Conclusion

In conclusion, the OS command injection vulnerability in node-notifier can be mitigated by upgrading to version 8.0.1 or later. Developers should ensure that user input is properly sanitized and validated to prevent similar vulnerabilities in the future. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for node-notifier →

Share this vulnerability

FAQ

node-notifier is an npm package used to display native system notifications in Node.js applications.

OS command injection is a vulnerability that allows an attacker to execute arbitrary commands on a target system by injecting malicious input.

This vulnerability in node-notifier can lead to unauthorized access, data leakage, or complete compromise of the target Linux machine.

To fix this vulnerability, upgrade to node-notifier version 8.0.1 or later.

Yes, if upgrading immediately is not possible, avoid passing user-controlled input as an array in the options params.

How To Fix

Latest published version: 11.0.0 as of 22 Oct 2026

npm install node-notifier@11.0.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

8.0.1

This is the first release that contains the fix.

npm install node-notifier@8.0.1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback