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
Aliases
  • GHSA-mvg6-qj9g-3j3j
Published
2026-09-16T06:37:12Z
Modified
2026-09-28T04:45:05Z
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.

Source: ghsa-malware (99fffce61c16acd792b61f7f6274bd9282b4ed22e645449ce58811c2a840924e)

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.

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"
            ]
        },
        {
            "id": "GHSA-mvg6-qj9g-3j3j",
            "import_time": "2026-09-28T04:33:51.326453076Z",
            "modified_time": "2026-09-28T04:06:18Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "99fffce61c16acd792b61f7f6274bd9282b4ed22e645449ce58811c2a840924e",
            "source": "ghsa-malware"
        }
    ]
}
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

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

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"
    },
    {
        "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"