Advisory

MAL-2026-4575

Also known as: GHSA-6gjr-97pp-w2cw

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in happy-dlscord.js (npm)

Details

---
_-= Per source details. Do not edit below this line.=-_

Source: amazon-inspector (2d183bf51c0f2be0102a7a7aeeda661f895e3b075f183d76d5f0f77c09c70860)
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: ghsa-malware (370dc741a074186282148bb83e278321f7508c6e5ff3f75d1c098f8252b9fe58)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Severity

Not rated by the source.

Dates

Published
2026-05-25 19:02 UTC
Modified
2026-08-20 12:30 UTC

Affected packages and fixes

happy-dlscord.js

npm ยท All systems

Affected

  • introduced 0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages ยท Apache-2.0

Sources & licences