MAL-2026-4575
Vulnerability from ossf_malicious_packages
-= 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.
- CWE-506 - The product contains code that appears to be malicious in nature.
{
"affected": [
{
"database_specific": {
"cwes": [
{
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature.",
"name": "Embedded Malicious Code"
}
],
"indicators": {
"evidence_files": [
{
"path": "src/client/Client.js",
"sha256": "c6b2ebf6ad1c122618c7bd91076fc00e55b2377154c28f2750d1187b44b11136",
"tlsh": "82e2b6166bf9137241b360ba9f9b6081e836d70f32468894755d93fd0f49b3487bafa0"
}
],
"package_integrity": [
{
"filename": "happy-dlscord.js-14.16.3.tgz",
"hashes": {
"sha1": "309c45b5120b2e6b16da90e6baa11e4b8c357681",
"sha512_sri": "sha512-m8sVgcCHyqy5OjtTnXQqryMo5fCWExL/m51XM7UfkLtSOHW4Lc4NwQMhU5c0ukC3a/pW4cUZBdtAXydMIqnb8Q=="
}
}
]
}
},
"package": {
"ecosystem": "npm",
"name": "happy-dlscord.js"
},
"versions": [
"14.16.3"
]
}
],
"credits": [
{
"contact": [
"actran@amazon.com"
],
"name": "Amazon Inspector",
"type": "FINDER"
}
],
"database_specific": {
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-004763",
"import_time": "2026-05-26T05:53:14.129977239Z",
"modified_time": "2026-05-25T19:02:13Z",
"sha256": "2d183bf51c0f2be0102a7a7aeeda661f895e3b075f183d76d5f0f77c09c70860",
"source": "amazon-inspector",
"versions": [
"14.16.3"
]
}
]
},
"details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2d183bf51c0f2be0102a7a7aeeda661f895e3b075f183d76d5f0f77c09c70860)\nThe package name \u0027happy-dlscord.js\u0027 is a one-character edit of the top-tier npm package \u0027discord.js\u0027 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 \u0027ready\u0027, the package POSTs the caller\u0027s 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 \u0027\ud83d\udd11 \u0627\u0644\u062a\u0648\u0643\u0646 \u0627\u0644\u0645\u0641\u0631\u0632\u0027 formatting the token in spoiler tags. The webhook endpoint is unrelated to the package\u0027s stated purpose and is controlled by the attacker. Any developer who installs this package and calls client.login(token) \u2014 the standard, mandatory entry point of the library \u2014 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\u0027s 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\u0027s primary documented API.\n",
"id": "MAL-2026-4575",
"modified": "2026-05-25T19:02:13Z",
"published": "2026-05-25T19:02:13Z",
"references": [
{
"type": "PACKAGE",
"url": "https://www.npmjs.com/package/happy-dlscord.js/v/14.16.3"
}
],
"schema_version": "1.7.4",
"summary": "Malicious code in happy-dlscord.js (npm)"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.