Malicious Code Injection in putri-sate7-ruro: A Threat to npm Users
Summary
MAL-2025-107540: Malicious code in putri-sate7-ruro (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-sate7-ruro' 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 with randomized names, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'putri-sate7-ruro' originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially harming developers who rely on the integrity of the packages they use. The malicious scripts included in this package are designed to automate the process of creating and publishing these harmful derivatives.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-sate7-ruro
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 workaround, consider using a package-lock.json file to monitor your dependencies. This file can help you identify and manage vulnerable packages. Additionally, you can use tools like Vulert to monitor and alert you in real-time for open-source vulnerabilities without requiring access to the code or installation. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner.
Conclusion
The 'putri-sate7-ruro' package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry with harmful derivatives. It is crucial for developers to remove this package and monitor their dependencies to maintain the security of their applications.
See every vulnerability recorded for putri-sate7-ruro →
FAQ
The vulnerability involves malicious code that modifies package.json files and repackages them, leading to potential pollution of the npm registry.
You can check your package.json file or use npm list to see if putri-sate7-ruro is listed among your dependencies.
Using this package can lead to the exposure of your project to malicious scripts, which may compromise your application's security and integrity.
Regularly audit your dependencies using tools like Vulert and keep your packages updated to the latest versions to mitigate risks.
Immediately uninstall the package using 'npm uninstall putri-sate7-ruro' and consider using Vulert to monitor your project for any other vulnerabilities.