Malicious Code Injection in byted-commerce-materials Package
Summary
MAL-2026-16326: Malicious code in byted-commerce-materials (npm). Affects byted-commerce-materials 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 byted-commerce-materials package is an npm module designed to provide materials for e-commerce applications. It is intended for developers looking to integrate various commerce functionalities into their projects. However, this package has been found to contain malicious code that executes during the installation process, posing significant security risks to users.
Vulnerability Detail
The vulnerability originates from the package's preinstall and postinstall scripts, which automatically execute a malicious JavaScript file (callback.js) upon installation. This file collects sensitive information such as hostname, username, and various credential files from the user's environment. The gathered data is then sent to an attacker-controlled Telegram bot, compromising user security and privacy. The malicious behavior is hidden under the guise of a legitimate package, making it particularly dangerous.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall byted-commerce-materials
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, users can avoid using the byted-commerce-materials package altogether and look for alternative packages that provide similar functionalities without the associated risks.
Conclusion
The byted-commerce-materials package contains a serious vulnerability that can lead to the unauthorized collection of sensitive user information. It is crucial for developers to remove this package and monitor their projects for any potential security threats. Utilizing tools like Vulert can help maintain the integrity of your applications.
See every vulnerability recorded for byted-commerce-materials →
FAQ
It is an npm module designed to provide materials for e-commerce applications.
The malicious code executes during the npm install process, collecting sensitive information and sending it to an external server.
You should uninstall the package immediately and check your environment for any compromised credentials.
Yes, consider looking for other npm packages that offer similar functionalities without the security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just package-lock.json. You can also check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner.