Malicious Code Injection in muda-poke31: A Threat to npm Ecosystem
Summary
MAL-2025-160766: Malicious code in muda-poke31 (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-poke31' 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 known to flood the npm registry with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores, posing a significant risk to developers and users alike.
Vulnerability Detail
The vulnerability in 'muda-poke31' originates from its design to include malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only compromises the integrity of the npm ecosystem but also can lead to unauthorized access and exploitation of affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall muda-poke31
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 avoid using 'muda-poke31' and any other packages associated with the tea.xyz token reward campaign. Instead, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The 'muda-poke31' package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate package metadata. It is crucial for developers to be aware of such vulnerabilities and take immediate action to secure their projects by removing affected packages and monitoring for future threats.
See every vulnerability recorded for muda-poke31 →
FAQ
'muda-poke31' is an npm package that has been identified as containing malicious code aimed at manipulating package metadata.
The vulnerability can lead to unauthorized modifications of your project's package.json file, potentially compromising security and integrity.
You should uninstall 'muda-poke31' immediately using the command 'npm uninstall muda-poke31' and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.