Malicious Code Injection in putri-oncom78-riris: A Threat to npm Ecosystem
Summary
MAL-2025-89740: Malicious code in putri-oncom78-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-oncom78-riris' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with a token reward campaign that has been flooding the npm registry with malicious packages. It is designed to manipulate developer reputation scores through the automatic generation and publication of derivative packages, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability in 'putri-oncom78-riris' stems from its malicious code that modifies the package.json file by removing private flags and altering version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these tainted packages, potentially leading to security breaches and loss of trust in the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall putri-oncom78-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 avoid using the 'putri-oncom78-riris' package and any other packages that are part of the same token reward campaign. Additionally, you can monitor your package-lock.json file for any unauthorized changes or additions.
Conclusion
The 'putri-oncom78-riris' package poses a significant threat to the npm ecosystem due to its malicious code that manipulates package metadata and floods the registry with compromised packages. It is crucial for developers to stay vigilant, update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for putri-oncom78-riris →
FAQ
The malicious code modifies the package.json file, removes private flags, and generates random package names, leading to the pollution of the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
Using compromised packages can lead to security breaches, data loss, and a loss of trust in the software ecosystem.
Regularly updating packages, using tools like Vulert for monitoring, and auditing dependencies can help prevent vulnerabilities.
Remove the 'putri-oncom78-riris' package from your project and monitor your package-lock.json for any unauthorized changes.