Malicious Code Detected in display-notifications Package
Summary
MAL-2025-18499: Malicious code in display-notifications (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 display-notifications package is an npm library designed to provide a simple way to display notifications in web applications. It is widely used for enhancing user experience by alerting users to important events or updates. However, a recent discovery has revealed that this package contains malicious code, posing a significant risk to applications that utilize it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the display-notifications package. This code can potentially compromise the security of applications that depend on it, leading to unauthorized access, data breaches, or other harmful actions. The malicious code was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action to mitigate the risk.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall display-notifications
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 notification functionalities without the associated risks. You can explore other npm packages such as 'notifier' or 'node-notifier' until a secure version of display-notifications is released.
Conclusion
The discovery of malicious code in the display-notifications package highlights the importance of vigilance when using open-source libraries. Users are urged to take immediate action by updating or removing the package to safeguard their applications. Regular monitoring for vulnerabilities is essential to maintain security.
See every vulnerability recorded for display-notifications →
FAQ
The display-notifications package is an npm library used to display notifications in web applications, enhancing user engagement.
The malicious code was introduced in version 0 of the display-notifications package and affects all subsequent versions.
Using this package can lead to unauthorized access, data breaches, and other security vulnerabilities in your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If an immediate update is not possible, consider removing the package or using alternative libraries until a secure version is released.