Malicious Code Detected in electron-native-notify Package
Summary
MAL-2025-19452: Malicious code in electron-native-notify (npm). Affected versions are not published. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The electron-native-notify package is a Node.js library designed to facilitate native notifications in Electron applications. It allows developers to send notifications to users on their desktop, enhancing user engagement and experience. However, this package has been found to contain malicious code, posing significant risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the electron-native-notify package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall electron-native-notify
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, consider using alternative packages that provide similar functionality without the associated risks. For instance, you can explore packages like 'node-notifier' or 'electron-notifications' until a safe version of electron-native-notify is released.
Conclusion
The discovery of malicious code in the electron-native-notify package highlights the importance of vigilance in managing open-source dependencies. Users are urged to uninstall the package and monitor for updates or alternatives to ensure the security of their applications.
See every vulnerability recorded for electron-native-notify →
FAQ
electron-native-notify is a Node.js library that allows developers to send native notifications in Electron applications.
The malicious code can lead to unauthorized access and potential data breaches in applications using the package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
Currently, there is no patched version available. It is recommended to uninstall the package until a safe version is released.
You should uninstall the electron-native-notify package immediately and consider using alternative packages for notifications.
Related vulnerabilities
Recent vulnerabilities recorded for electron-native-notify.