Critical Vulnerability in discord.js-user

discord.js-user Updated 02 Oct 2025

Summary

03/09/2020
CRITICAL
No i
Critical
9.8

GHSA-69r6-7h4f-9p7q: Malicious Package in discord.js-user. Affects discord.js-user versions >= 0.0.0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

discord.js-user is an npm package used for interacting with the Discord API in JavaScript applications. It provides functionality for managing user accounts and accessing various features of the Discord platform. However, all versions of discord.js-user have been found to contain malicious code that uploads the user's Discord token to a remote server.

Vulnerability Detail

The vulnerability in discord.js-user allows an attacker to gain unauthorized access to a user's Discord account by extracting their token. This token can be used to impersonate the user, perform actions on their behalf, and potentially gain access to sensitive information. The malicious code present in the package uploads the token to a remote server controlled by the attacker. This poses a significant security risk to users who have installed and used discord.js-user in their applications.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to remove the package and take the necessary steps to secure user accounts.

Conclusion

The critical vulnerability in discord.js-user exposes user Discord tokens to malicious actors, potentially leading to unauthorized access and misuse of user accounts. It is imperative to remove the package from your environment and take necessary steps to secure user accounts. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for discord.js-user →

Share this vulnerability

FAQ

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert analyzes your package-lock.json file and provides real-time alerts for open-source vulnerabilities.

The consequences of this vulnerability include unauthorized access to user accounts, potential data breaches, and malicious activities performed on behalf of the user. It is crucial to address this issue promptly to protect user privacy and prevent further exploitation.

There are no known fixes or patches available for the discord.js-user package. The recommended course of action is to remove the package from your environment and replace it with a trusted alternative.

No, all versions of discord.js-user are affected by this vulnerability. Updating to the latest version will not resolve the issue. It is crucial to remove the package entirely from your application.

After removing discord.js-user, it is recommended to invalidate any compromised tokens associated with user accounts. This will prevent unauthorized access to the accounts. Additionally, consider implementing additional security measures such as two-factor authentication to enhance user account protection.

Related vulnerabilities

Recent vulnerabilities recorded for discord.js-user.

How To Fix

No fixed version is published for this vulnerability.

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