Malicious Code Detected in discordi.js: A Critical Security Alert

discordi.js Updated 02 Oct 2025

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-18484: Malicious code in discordi.js (npm). Affected versions are not published. No fix is published. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

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