Malicious Code in ocha-ragi61-riris: npm Package Vulnerability
Summary
MAL-2025-89018: Malicious code in ocha-ragi61-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 'ocha-ragi61-riris' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This campaign has led to the proliferation of numerous packages that often contain scripts designed to manipulate package metadata and inflate developer reputation scores. The package in question is particularly concerning due to its malicious behavior, which includes altering package.json files and republishing variants to clutter the npm registry.
Vulnerability Detail
The vulnerability originates from the package being part of a malicious campaign that floods npm with derivative packages. It includes scripts that modify the package.json file by removing private flags and changing version numbers. Additionally, it generates random package names and continuously republishes these variants, which can lead to significant pollution of the npm registry and potential security risks for developers who unknowingly use these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ocha-ragi61-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 measure, avoid using the 'ocha-ragi61-riris' package and consider using alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which can alert you to any open-source vulnerabilities in your software.
Conclusion
The 'ocha-ragi61-riris' package poses a significant risk due to its malicious code designed to manipulate npm package metadata. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain security and integrity within their applications.
See every vulnerability recorded for ocha-ragi61-riris →
FAQ
The 'ocha-ragi61-riris' package is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the creation of numerous derivative packages.
This vulnerability can lead to the pollution of the npm registry, potentially causing conflicts and security risks in your project if you inadvertently use affected packages.
If you have installed the 'ocha-ragi61-riris' package, you should uninstall it immediately using 'npm uninstall ocha-ragi61-riris' and monitor your project for any other vulnerabilities.
Yes, tools like Vulert can help monitor your project for open-source vulnerabilities in real-time, using just your package-lock.json file.
You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner, which allows you to analyze your project without any signup.