Malicious Code Detected in discordwebhooks Package - MAL-2025-18489
Summary
MAL-2025-18489: Malicious code in discordwebhooks (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 discordwebhooks package is an npm library that allows developers to send messages to Discord channels via webhooks. It is commonly used in applications that require integration with Discord for notifications or alerts. However, this package has been found to contain malicious code, posing significant risks to users and their applications.
Vulnerability Detail
The vulnerability originates from the inclusion of malicious code within the discordwebhooks package. This code can potentially compromise user data, allow unauthorized access to systems, or facilitate further attacks. The malicious nature of this code makes it imperative for users to take immediate action to safeguard their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall discordwebhooks
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, users can remove the discordwebhooks package from their project until a secure version is released. This can be done using the command: npm uninstall discordwebhooks. Alternatively, consider using a different package that provides similar functionality without the associated risks.
Conclusion
The discovery of malicious code in the discordwebhooks package highlights the importance of maintaining vigilance in open-source software. Users are encouraged to update their packages promptly and utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for discordwebhooks →
FAQ
The discordwebhooks package is an npm library used to send messages to Discord channels through webhooks, commonly utilized in applications for notifications.
The specific details of the malicious code have not been disclosed, but it poses risks such as unauthorized access and data compromise.
You can use Vulert, a tool that monitors open-source vulnerabilities in real-time. Simply upload your package-lock.json file to check for vulnerabilities without needing to install any software.
If an immediate update is not possible, consider removing the package from your project or using an alternative package until a secure version is available.
More details can be found on the GitHub repository of the malicious package, which outlines the vulnerability and its implications.