MAL-2026-14051

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@velliajs/discord/MAL-2026-14051.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14051
Aliases
  • GHSA-rrh4-2mwf-4xw7
Published
2026-08-14T22:28:38Z
Modified
2026-11-09T16:30:06Z
Summary
Malicious code in @velliajs/discord (npm)
Details

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

Source: amazon-inspector (1c86edd3f7edd7d111df5621cb884fd0ef3d870c6c0719d587b7bb0f16f65b8d)

The package presents itself as a discord.js clone (repository field points at the real github.com/discordjs/discord.js.git, README instructs import... from '@verylinh/discord') but ships two installer-relevant hostile mechanisms. First, package.json declares a runtime dependency sysframe resolved from git+https://ghp_...@github.com/navaLinh/node-ai.git — an unpinned (no commit SHA or tag), private, author-controlled GitHub repository, using an embedded live GitHub Personal Access Token. Every npm install uses the shipped token to fetch the current HEAD of that private repo into the installer's node_modules; the author can rewrite HEAD at any time to deliver arbitrary code, including lifecycle scripts, that will execute on subsequent installs. Second, Client.login() invokes an undocumented _verifyAuthorization routine that fetches an allow-list JSON from api.github.com/repos/Vellia-Elyvia/mydb/contents/db.json under a hardcoded PAT and refuses to start the installer's Discord bot unless the bot's username appears in the author-controlled allow-list — a hidden remote gate/kill-switch over the installer's runtime that is not disclosed in the README. Two live GitHub PATs are hardcoded in the shipped package (one in the git dependency URL, one as the default ghToken in _validateAuthOptions). The package name and metadata impersonate discord.js.

Source: ghsa-malware (17f582f59e88d49619ea2b5a988bbed4dae9fc920e4d4f48d10ea3113d7a5294)

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-017930",
            "import_time": "2026-08-14T22:42:25.202550122Z",
            "modified_time": "2026-08-14T22:28:47Z",
            "sha256": "04b7767e977c183f47d761464e45db73c07784967f48456f2fd4ee261d781161",
            "source": "amazon-inspector",
            "versions": [
                "1.0.5"
            ]
        },
        {
            "id": "IN-MAL-2026-017929",
            "import_time": "2026-08-14T22:42:25.178873839Z",
            "modified_time": "2026-08-14T22:28:38Z",
            "sha256": "1c86edd3f7edd7d111df5621cb884fd0ef3d870c6c0719d587b7bb0f16f65b8d",
            "source": "amazon-inspector",
            "versions": [
                "1.0.4"
            ]
        },
        {
            "id": "IN-MAL-2026-017933",
            "import_time": "2026-08-14T22:42:25.327184801Z",
            "modified_time": "2026-08-14T22:29:09Z",
            "sha256": "7a036e528b785b9495fd5fb2a49f2cbe0ab4f1796f2a235a46e63b0f7de83030",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-017932",
            "import_time": "2026-08-14T22:42:25.28010122Z",
            "modified_time": "2026-08-14T22:29:03Z",
            "sha256": "c59b0d662d2067100ccd6b81ce6223d979067bf7927c92c76a8841aff6c8fcde",
            "source": "amazon-inspector",
            "versions": [
                "1.0.6"
            ]
        },
        {
            "id": "IN-MAL-2026-017931",
            "import_time": "2026-08-14T22:42:25.246641643Z",
            "modified_time": "2026-08-14T22:28:56Z",
            "sha256": "d9ec14c7e20b722636937ac258aec64347df2df21e2b2e2812a30f4ff63acbfe",
            "source": "amazon-inspector",
            "versions": [
                "1.0.7"
            ]
        },
        {
            "id": "GHSA-rrh4-2mwf-4xw7",
            "import_time": "2026-11-09T16:20:43.505627954Z",
            "modified_time": "2026-11-09T15:36:44Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "17f582f59e88d49619ea2b5a988bbed4dae9fc920e4d4f48d10ea3113d7a5294",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / @velliajs/discord

Package

Name
@velliajs/discord
View open source insights on deps.dev
Purl
pkg:npm/%40velliajs/discord

Affected ranges

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

Affected versions

1.*
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7

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"
    },
    {
        "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"
    },
    {
        "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": "package.json",
            "sha256": "075ecdc92d9e975ffa832919d02f3dc19e0ef9a844ba85af2e76c391d2db8ad5",
            "tlsh": "6f41d922c9249c7307e425eead9a02035224598b4e4bfc0d37a9536d4f0d6af31bcb6f"
        }
    ],
    "package_integrity": [
        {
            "filename": "discord-1.0.5.tgz",
            "hashes": {
                "sha1": "701b66722e6bfe0ea60084c35744185f41671345",
                "sha512_sri": "sha512-BjGBpprX55yqk4CWc8HsiGhkNuZsfv6pUL8HVPFegyKG6wu1vIcoxd/8gZ5cT3NzdQQM3ZA4+IW/uHMPgVfvyA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@velliajs/discord/MAL-2026-14051.json"