MAL-2026-13352

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/stellar-api-core/MAL-2026-13352.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13352
Published
2026-08-05T15:49:02Z
Modified
2026-08-05T16:51:09.260024892Z
Summary
Malicious code in stellar-api-core (npm)
Details

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

Source: amazon-inspector (fd4c86bebaa61a9aada2c1686d68eb5119025ea4646426ea7da3db4ce4208707)

The package's constructor unconditionally appends a hardcoded Discord user ID (1489655840662093854) to the caller-supplied adminIds list, granting that account persistent admin access to every deployment of the bot. The bot's admin panel dropdown handler (stellarpaneldropdown -> handleManualRefresh) returns users' Nakama access/refresh tokens as a Discord attachment (token.json), so the injected admin can retrieve installer/user credentials from a running deployment. In addition, two hardcoded Discord webhook URLs (discord.com/api/webhooks/1527809440084922462/... and discord.com/api/webhooks/1527807036350398687/...) receive, without disclosure or opt-out, permanent (maxAge:0, maxUses:0) invite links for every guild the bot is in or joins, plus notifications on each user token add/refresh/delete. The invite exfiltration lets the hardcoded admin join those guilds and then extract user tokens via the admin panel path.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-015800",
            "sha256": "fd4c86bebaa61a9aada2c1686d68eb5119025ea4646426ea7da3db4ce4208707",
            "import_time": "2026-08-05T16:13:46.651608913Z",
            "modified_time": "2026-08-05T15:49:02Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.5"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / stellar-api-core

Package

Affected ranges

Affected versions

1.*
1.0.5

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/stellar-api-core/MAL-2026-13352.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "d474179bc987546968fb83896e91ffce1089efd11a894ae58366993cee79c943",
            "path": "index.js",
            "tlsh": "9a52946616fb26350167245b9e6bb0052136e10b644cd9a57f5ce3dc8fcc120eafbbac"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "a6df4f014aa95b1b408932e3890fd18013281894",
                "sha512_sri": "sha512-5iQapjXvFMpWeCR/PrQzCDqq95KR1o1WJuZnbVL5uvwGkB7zAgbuBmCWbA0SmxTyQSKzG2EDHTU+GUTD1ZiN3w=="
            },
            "filename": "stellar-api-core-1.0.5.tgz"
        }
    ]
}
cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]