Malicious Code Detected in Starbucks SDK: A Critical Security Threat

starbucks-sdk Updated 21 Sep 2026

Summary

20/09/2026
CRITICAL
No i
Critical
Not published

MAL-2026-16345: Malicious code in starbucks-sdk (npm). Affects starbucks-sdk versions 1.0.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The 'starbucks-sdk' package, available on npm, is designed to provide a software development kit for interacting with Starbucks services. However, this package has been identified as malicious due to its deceptive behavior that mimics legitimate vendor SDKs while executing harmful actions during installation. The vulnerability stems from a preinstall script that collects sensitive information from the user's environment.

Vulnerability Detail

The vulnerability originates from a preinstall script in the 'starbucks-sdk' package that executes a file named 'callback.js' during the npm install process. This script gathers sensitive information such as the hostname, user information, platform details, current working directory, and environment variables that match specific patterns (e.g., token, secret, key). The collected data is then sent to an attacker-controlled Telegram channel using a hardcoded bot token and chat ID. This behavior poses significant risks, including unauthorized access to sensitive data and potential exploitation of the user's environment.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall starbucks-sdk

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, avoid using the 'starbucks-sdk' package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.

Conclusion

The 'starbucks-sdk' package has been identified as malicious due to its harmful preinstall script that collects sensitive information and sends it to an attacker-controlled channel. It is essential to uninstall this package immediately and monitor your environment for any potential breaches. Utilizing tools like Vulert can help maintain the security of your projects.

See every vulnerability recorded for starbucks-sdk →

Share this vulnerability

FAQ

The 'starbucks-sdk' package is an npm package intended to provide a software development kit for interacting with Starbucks services.

The malicious code runs during the installation of the package, collecting sensitive information from the user's environment and sending it to an attacker-controlled Telegram channel.

If you have installed the 'starbucks-sdk' package, immediately uninstall it using 'npm uninstall starbucks-sdk' and check your environment for any potential data breaches.

Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.

Regularly update your dependencies, monitor for security advisories, and utilize tools like Vulert to keep track of vulnerabilities in your open-source packages.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall starbucks-sdk

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback