# GHSA-6M74-H462-FR23: Malicious code in starbucks-sdk (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-09-21
- Modified: 2026-09-21

## Affected versions

- starbucks-sdk (npm): 1.0.0

## Description

## Source: amazon-inspector (f42de3e225b6f8d6be04fbf613ae4d17458626c92f2cfe1bf1b4476fe132e761)
The package's package.json declares a preinstall script that runs callback.js on npm install. callback.js collects os.hostname(), os.userInfo(), os.platform(), the current working directory, and a timestamp, then enumerates process.env and selects keys matching /token|secret|key|pass|auth|api|aws/i (up to 10 entries). The collected data is POSTed via https.request to https://api.telegram.org/bot<BOT_TOKEN>/sendMessage using a hardcoded Telegram bot token and chat_id (bot 8636277735, chat_id 1064260758). The name mimics a legitimate vendor SDK but the package's only behavior is install-time reconnaissance and exfiltration of installer/build-host identity and credential-shaped environment variable names to an attacker-controlled Telegram channel — a dependency-confusion recon payload.

## Source: ossf-package-analysis (cbea0cf6cf424cbaa524691f90c075f11c4c5265e941abdeab442a53ccbb0caf)
The OpenSSF Package Analysis project identified 'starbucks-sdk' @ 1.0.0 (npm) as malicious.

It is considered malicious because:

- The package communicates with a domain associated with malicious activity.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/d01152371c0ae806b74fc03a3f4d821a3fd6770c/osv/malicious/npm/starbucks-sdk/MAL-2026-16345.json))

## References

- https://github.com/ossf/malicious-packages/blob/d01152371c0ae806b74fc03a3f4d821a3fd6770c/osv/malicious/npm/starbucks-sdk/MAL-2026-16345.json
- https://www.npmjs.com/package/starbucks-sdk/v/1.0.0
- https://github.com/advisories/GHSA-6m74-h462-fr23

Page: https://cve.now/GHSA-6M74-H462-FR23

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