happy-dlscord.js@14.16.3
Vulnerability report · Last retrieved from osv.dev October 7, 2026 at 10:33 AM UTC
OSV ID
MAL-2026-4575
Ecosystem
npm
Summary
The package name 'happy-dlscord.js' is a one-character edit of the top-tier npm package 'discord.js' and ships a near-verbatim fork of the upstream library with an injected payload in src/client/Client.js. In Client.prototype.login(), once the client emits 'ready', the package POSTs the caller's Discord bot token to a hardcoded Discord webhook (https://discord.com/api/webhooks/1508514263197552690/...), wrapped in a JSON body containing the bot tag, id, and timestamp, with Arabic-labeled fields including '🔑 التوكن المفرز' formatting the token in spoiler tags. The webhook endpoint is unrelated to the package's stated purpose and is controlled by the attacker. Any developer who installs this package and calls client.login(token) — the standard, mandatory entry point of the library — silently surrenders their bot token to a third party, fully compromising the Discord bot (read all guild messages, send messages as the bot, modify the bot's account, persist beyond simple uninstall). Three independent block signals are present: typosquat of a top-100 package, hardcoded attacker-controlled exfiltration destination, and automatic firing on the library's primary documented API.
Source: amazon-inspector (2d183bf51c0f2be0102a7a7aeeda661f895e3b075f183d76d5f0f77c09c70860)
Protect your entire dependency tree
Scan your lock files automatically on every PR. Block malicious packages before they reach production.