Malicious Code Injection in ogi-tapai98-riris: A Threat to npm Users
Summary
MAL-2025-89133: Malicious code in ogi-tapai98-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 'ogi-tapai98-riris' is part of a broader campaign associated with the tea.xyz token reward system, which has been flooding the npm ecosystem. This package is designed to manipulate npm's package registry by creating and publishing numerous derivative packages with randomized names. Its primary function appears to be to inflate developer reputation scores for token rewards, making it a significant concern for developers relying on npm for package management.
Vulnerability Detail
The vulnerability in 'ogi-tapai98-riris' stems from its malicious code that 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, which clutters the npm registry and can potentially compromise the integrity of other packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to automate the creation of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ogi-tapai98-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 npm's package-lock.json file to monitor dependencies. Ensure that your project does not include 'ogi-tapai98-riris' in its dependencies. You can also use the following command to audit your project for vulnerabilities: 'npm audit'.
Conclusion
The 'ogi-tapai98-riris' package poses a significant threat due to its malicious code designed to manipulate the npm registry. Developers should take immediate action to remove this package and utilize tools like Vulert to monitor their applications for vulnerabilities. Staying informed and proactive is key to maintaining the security of your software.
See every vulnerability recorded for ogi-tapai98-riris →
FAQ
The impact includes potential pollution of the npm registry and the risk of inadvertently using compromised packages that could affect your application's security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
You should uninstall the package immediately using 'npm uninstall ogi-tapai98-riris' and audit your project for any other vulnerabilities.
Vulert uses the package-lock.json file to monitor your dependencies and alert you in real-time about any open-source vulnerabilities, ensuring your application remains secure.
Currently, there are no patches for the ogi-tapai98-riris package. The best course of action is to remove the package and monitor your dependencies for updates.