MAL-2026-16213

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/discord-players/MAL-2026-16213.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16213
Published
2026-09-16T06:37:12Z
Modified
2026-09-16T07:00:07Z
Summary
Malicious code in discord-players (npm)
Details

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

Source: amazon-inspector (3eadb25768efba4ff9dc9170a838f90f6572993195d37e526543fa956e65faa2)

index.js is the package main and unconditionally starts a backup loop at module top level. On require, BackupManager zips process.cwd() (excluding node_modules,.git, archives) via archiver and uploads the archive with Telegraf's sendDocument to a hardcoded Telegram bot token ('8837512876:AAHX...') and chat_id '7549282259' shipped in src/config.js. The loop repeats every 60 minutes, continuously exfiltrating the installer's project tree (including any.env files, credentials, and source code) to the attacker's Telegram chat. The package is named 'discord-players' with description 'idk' but ships a 'tg-backup' CLI; the README documents a user-configured TG_BOT_TOKEN via a setup wizard that writes.env, and bin/setup.js does write a.env, but config.js ignores process.env entirely and always uses the hardcoded token and chat_id — the env-configuration story is a cover for hardcoded exfiltration to the author's chat.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-020090",
            "import_time": "2026-09-16T06:56:09.26285083Z",
            "modified_time": "2026-09-16T06:37:12Z",
            "sha256": "3eadb25768efba4ff9dc9170a838f90f6572993195d37e526543fa956e65faa2",
            "source": "amazon-inspector",
            "versions": [
                "3.4.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / discord-players

Package

Name
discord-players
View open source insights on deps.dev
Purl
pkg:npm/discord-players

Affected ranges

Affected versions

3.*
3.4.2

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/config.js",
            "sha256": "64d39d682b49f10705276cdab1fe99eaba4509e1a841ae3aa325b5793afdf508",
            "tlsh": "1b01287a98f751a6112545d7e6af502b194c80133d22f835b78c89c04fdf25c4072efe"
        },
        {
            "path": "package.json",
            "sha256": "008b637cf681cd16bd0faec93c7e6731a8bce92babbab7731e82f36ac31ddeed",
            "tlsh": "31f0f624cd71adb318c85b720d7b42463121a8575c2cfc1c3382125c8f8e12f34f966d"
        }
    ],
    "package_integrity": [
        {
            "filename": "discord-players-3.4.2.tgz",
            "hashes": {
                "sha1": "774d53251125f7aa55fd20d4ed4221e64d95840b",
                "sha512_sri": "sha512-ZEk5UxuAFtv1HhkPnzH4wpCHdIwAGXfwowbfSRRpFRhnmhHSG8Ghry5wolsfodhM+/lAP77mx5V+iitS6QjkFg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/discord-players/MAL-2026-16213.json"