Malicious Code Detected in discordi.js: A Critical Security Alert
Summary
MAL-2025-18484: Malicious code in discordi.js (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
discordi.js is an npm package designed for creating Discord bots, providing a range of functionalities to interact with the Discord API. It is popular among developers for its ease of use and extensive features. However, recent findings have revealed that the package contains malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in discordi.js stems from the inclusion of malicious code that can compromise user data and application integrity. This issue originated from the package's codebase, which was found to be intentionally crafted to execute harmful actions. Users of this package may face unauthorized access to sensitive information, data breaches, and potential exploitation of their applications by malicious actors.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall discordi.js
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 an immediate workaround, consider removing discordi.js from your project and replacing it with an alternative package that offers similar functionalities without the associated risks. Additionally, you can monitor your dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time.
Conclusion
The discovery of malicious code in discordi.js highlights the importance of regularly monitoring and updating dependencies in software projects. Users are urged to take immediate action to protect their applications by removing the affected package and considering alternatives. Utilizing tools like Vulert can further enhance security by providing real-time alerts for vulnerabilities.
See every vulnerability recorded for discordi.js →
FAQ
discordi.js is an npm package used for building Discord bots, allowing developers to interact with the Discord API easily.
The malicious code can lead to unauthorized access to user data and may compromise the integrity of applications using the package.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
You should immediately remove discordi.js from your project and update to a secure version or consider using an alternative package.
Vulert uses your package-lock.json file to monitor and alert you in real-time for open-source vulnerabilities in your software, ensuring you stay informed about potential risks.
Related vulnerabilities
Recent vulnerabilities recorded for discordi.js.