Malicious Code Injection in ocha-lengko91-riris Package
Summary
MAL-2025-89000: Malicious code in ocha-lengko91-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 ocha-lengko91-riris package 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 scripts that compromise its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the ocha-lengko91-riris package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which are then continuously republished to pollute the npm registry. The origin of this issue is linked to the broader campaign that exploits npm for token rewards, posing risks such as unauthorized access to sensitive data and the potential for further exploitation of affected systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ocha-lengko91-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 workaround, 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 analyzes your package-lock.json file for real-time alerts on open-source vulnerabilities.
Conclusion
The ocha-lengko91-riris package has been identified as containing malicious code that compromises the integrity of the npm registry. It is crucial to remove this package from your project and monitor for any vulnerabilities using tools like Vulert to ensure the security of your applications.
See every vulnerability recorded for ocha-lengko91-riris →
FAQ
The ocha-lengko91-riris package is an npm package involved in the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially exposing your project to further security risks and polluting the npm registry.
Currently, there is no patched version available for the ocha-lengko91-riris package. It is advised to uninstall the package to mitigate risks.
You can use Vulert to monitor your project for vulnerabilities by analyzing your package-lock.json file. This tool provides real-time alerts without requiring code access or installation.
If you have dependencies relying on the ocha-lengko91-riris package, review them and consider replacing them with safer alternatives or updating them to remove the dependency.