Malicious Code Injection in musik-dai-bot: A Threat to npm Users
Summary
MAL-2025-161030: Malicious code in musik-dai-bot (npm). Affected versions are not published. 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 'musik-dai-bot' package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious activities aimed at inflating developer reputation scores. The package's functionality is compromised by the presence of malicious scripts that manipulate its metadata and republish variants to the npm registry, posing a significant risk to users.
Vulnerability Detail
The vulnerability in the 'musik-dai-bot' package originates from malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior not only affects the integrity of the npm ecosystem but also exposes users to potential security risks, as they may unknowingly install compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall musik-dai-bot
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 should avoid using the 'musik-dai-bot' package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The 'musik-dai-bot' package poses a significant security risk due to its malicious code that alters package metadata and repopulates the npm registry with compromised variants. Users are advised to update their dependencies and monitor their projects for vulnerabilities to maintain security.
See every vulnerability recorded for musik-dai-bot →
FAQ
The 'musik-dai-bot' package is an npm package that has been compromised with malicious code aimed at inflating developer reputation scores through the tea.xyz token reward campaign.
The malicious code modifies your project's package.json file, potentially exposing your project to further vulnerabilities and affecting the integrity of the npm registry.
If you have installed 'musik-dai-bot', it is crucial to remove it from your project and update your dependencies to ensure your project remains secure.
You can use tools like Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software by analyzing your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.