Malicious Code Injection in putri-tiwul41-riris: A Threat to npm Packages
Summary
MAL-2025-89797: Malicious code in putri-tiwul41-riris (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 'putri-tiwul41-riris' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to generate and publish derivative packages automatically, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious design of the package, which includes scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially affecting other packages and developers. The malicious payload can compromise the security of applications relying on this package, leading to unauthorized access or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-tiwul41-riris
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 prevent the installation of this package by using the following command to uninstall it: npm uninstall putri-tiwul41-riris. Additionally, consider using package-lock.json to monitor dependencies and ensure no malicious packages are included.
Conclusion
The 'putri-tiwul41-riris' package poses a significant security risk due to its malicious code designed to manipulate npm packages. It is crucial for developers to be vigilant about their dependencies and utilize tools like Vulert to monitor for vulnerabilities. Immediate action should be taken to remove the affected package and ensure the security of your applications.
See every vulnerability recorded for putri-tiwul41-riris →
FAQ
The malicious code can lead to unauthorized modifications of your project's dependencies, potentially compromising application security.
You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
Immediately uninstall the package using 'npm uninstall putri-tiwul41-riris' and check for any other dependencies that may be affected.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.
Signs include unexpected behavior, unauthorized access, or changes in your application's performance. Always review your dependencies for any suspicious activity.