Malicious Code Detected in Shopee-Chat Package - npm Vulnerability
Summary
MAL-2026-198: Malicious code in shopee-chat (npm). Affects shopee-chat versions 99.99.9. 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 'shopee-chat' package is a Node.js library designed for facilitating chat functionalities within applications. It is commonly used in various projects for its ease of integration and user-friendly features. However, the package version 99.99.9 has been flagged for containing malicious code that executes harmful commands, posing significant security risks to applications utilizing it.
Vulnerability Detail
The vulnerability in the 'shopee-chat' package arises from its malicious behavior, which includes executing commands that can compromise the security of the host system. This issue was identified by the OpenSSF Package Analysis project, which flagged the package as malicious due to its potential to perform unauthorized actions. Users of this package may face severe consequences, including data breaches, unauthorized access, and system instability.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall shopee-chat
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, consider removing the 'shopee-chat' package from your project until a secure version is released. You can do this by running the following command: npm uninstall shopee-chat.
Conclusion
The 'shopee-chat' package has been identified as malicious, with the potential to execute harmful commands. It is crucial for developers to update or remove this package to safeguard their applications. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for shopee-chat →
FAQ
The malicious code executes commands that can lead to unauthorized actions on the host system, potentially compromising security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If immediate updates are not feasible, consider removing the package as a temporary measure to mitigate risks.
The vulnerability was identified by the OpenSSF Package Analysis project, which specializes in analyzing packages for malicious behavior.
Using the affected package can lead to data breaches, unauthorized access, and overall instability of the application.