MAL-2026-13352 Malicious code in stellar-api-core (npm)
Malicious package
Published
MAL-2026-13352 is a malicious package: stellar-api-core (npm). Every version was published to cause harm.
Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.
Reference: https://insights.sbomify.com/MAL-2026-13352/ (Markdown: https://insights.sbomify.com/MAL-2026-13352/index.md)
- Package
- stellar-api-core
- Registry
- npm
What is MAL-2026-13352?
MAL-2026-13352 is a malicious package in stellar-api-core, published on 5 Aug 2026.
Official description
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 (stellar_panel_dropdown -> 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.
What should I do about MAL-2026-13352?
Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.