Malicious Code Injection in pute-trud-mutiara: A Threat to npm Users
Summary
MAL-2025-164557: Malicious code in pute-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 package 'pute-trud-mutiara' is part of a series of npm packages that have been associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files and republish itself, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in 'pute-trud-mutiara' originates from its malicious payload, which alters the package.json file by removing private flags and changing 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 a risk to developers who may unknowingly use these tainted packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall pute-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, avoid using the 'pute-trud-mutiara' package and consider using alternative packages that provide similar functionality without the associated risks. Regularly audit your dependencies to ensure they are secure.
Conclusion
The 'pute-trud-mutiara' package poses a significant threat to npm users due to its malicious code that alters package metadata and repopulates the npm registry with tainted packages. It is crucial for developers to be vigilant, remove affected packages, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for pute-trud-mutiara →
FAQ
It is an npm package associated with a token reward campaign that has been found to contain malicious code.
The vulnerability can lead to the introduction of malicious code into your application, compromising its security and integrity.
Immediately uninstall the package and review your application's dependencies for any other potentially malicious packages.
Yes, you can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.