Malicious Code Detected in Starbucks SDK: A Critical Security Threat
Summary
MAL-2026-16345: Malicious code in starbucks-sdk (npm). Affects starbucks-sdk versions 1.0.0. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.