Malicious Code Injection in wati-bakso52-riris: A Threat to npm Ecosystem
Summary
MAL-2025-91996: Malicious code in wati-bakso52-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 wati-bakso52-riris is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, 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 wati-bakso52-riris originates from its association with a campaign that floods the npm registry with malicious packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants. This not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to further security issues in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall wati-bakso52-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, avoid using the wati-bakso52-riris package and consider using alternative packages that provide similar functionality without the associated risks. You can also monitor your project for vulnerabilities using tools like Vulert, which can alert you to any open-source vulnerabilities in your software.
Conclusion
The wati-bakso52-riris package poses a significant risk due to its malicious code that alters package configurations and floods the npm registry. It is essential for developers to be vigilant, remove affected packages, and utilize tools like Vulert to maintain the security of their applications.
See every vulnerability recorded for wati-bakso52-riris →
FAQ
The wati-bakso52-riris package is an npm package associated with a token reward campaign that has been identified as containing malicious code.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to security vulnerabilities in your project.
If you have installed the wati-bakso52-riris package, you should uninstall it immediately using the command npm uninstall wati-bakso52-riris.
Regularly update your dependencies, use trusted packages, and monitor your project for vulnerabilities using tools like Vulert.
Vulert is a tool that monitors and alerts you in real-time for open-source vulnerabilities in your software, using just the package-lock.json file. You can check for vulnerabilities without needing to install anything.