# GHSA-6C8R-CV56-5H9H: Malicious code in stellar-api-core (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-08-05
- Modified: 2026-11-17

## Affected versions

- stellar-api-core (npm): 1.0.5
- stellar-api-core (npm): 1.0.3
- stellar-api-core (npm): 1.0.4
- stellar-api-core (npm): 1.0.6
- stellar-api-core (npm): 1.0.7

## Description

## 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 (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.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/7a679fd5edc3e2ed705b5a123e342a2da922e3ba/osv/malicious/npm/stellar-api-core/MAL-2026-13352.json))

## References

- https://github.com/ossf/malicious-packages/blob/7a679fd5edc3e2ed705b5a123e342a2da922e3ba/osv/malicious/npm/stellar-api-core/MAL-2026-13352.json
- https://www.npmjs.com/package/stellar-api-core/v/1.0.5
- https://github.com/ossf/malicious-packages/blob/3763978d6acb1a567ed2f65e7d6e31b1d8f0a32c/osv/malicious/npm/stellar-api-core/MAL-2026-13352.json
- https://github.com/advisories/GHSA-6c8r-cv56-5h9h

Page: https://cve.now/GHSA-6C8R-CV56-5H9H

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
