Malicious Code Injection in put-trud-mutiara Package - npm Vulnerability
Summary
MAL-2025-164556: Malicious code in put-trud-mutiara (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 put-trud-mutiara 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 primary functionality is to facilitate the distribution of JavaScript code, but it has been compromised to serve malicious purposes.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the put-trud-mutiara package. This code is designed to automatically modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants to pollute the npm registry, posing significant risks such as unauthorized access to sensitive data and potential exploitation of affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall put-trud-mutiara
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 measure, you can avoid using the put-trud-mutiara package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The put-trud-mutiara package has been identified as containing malicious code that poses significant risks to developers and their projects. It is essential to remove this package and monitor for any updates or patches. Utilizing tools like Vulert can help in identifying vulnerabilities in your projects effectively.
See every vulnerability recorded for put-trud-mutiara →
FAQ
The put-trud-mutiara package is an npm package that has been compromised to include malicious code aimed at inflating developer reputation scores.
The malicious code modifies your package.json file, removes private flags, and republishes variants, which can lead to unauthorized access and data breaches.
You should immediately uninstall the put-trud-mutiara package and check for any dependencies that may have been affected.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.