Malicious Code Injection in muda-poke6: A Threat to npm Users
Summary
MAL-2025-160788: Malicious code in muda-poke6 (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 package muda-poke6 is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores. This package is particularly vulnerable due to its malicious scripts that alter package metadata and republish variants, leading to potential pollution of the npm registry.
Vulnerability Detail
The vulnerability in muda-poke6 originates from its malicious code that modifies the package.json file to remove private flags and change version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall muda-poke6
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, you can remove the muda-poke6 package from your project by executing: npm uninstall muda-poke6. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The muda-poke6 package poses a significant threat due to its malicious code that alters package metadata and repopulates the npm registry with compromised versions. It is crucial for developers to take immediate action by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for muda-poke6 →
FAQ
muda-poke6 is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the injection of malicious code into your application, potentially compromising its security and integrity.
You should uninstall the package immediately and monitor for any updates or patches that address the vulnerability.
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 your application for vulnerabilities without any signup at the Vulert playground.
Regularly updating your dependencies and using tools like Vulert can help you stay informed about vulnerabilities and maintain the security of your applications.