Malicious Code Injection in ocha-klanting56-riris Package
Summary
MAL-2025-88989: Malicious code in ocha-klanting56-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-klanting56-riris package is part of the npm ecosystem, often used in JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with packages that inflate developer reputation scores. This package, like others in the campaign, is designed to automatically generate and publish derivative packages, potentially compromising the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the ocha-klanting56-riris package stems from its malicious code that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. This behavior is part of a broader scheme to manipulate developer reputation scores for token rewards, posing risks to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ocha-klanting56-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 ocha-klanting56-riris package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your dependencies using tools like Vulert, which alerts you to vulnerabilities in real-time without requiring code access.
Conclusion
The ocha-klanting56-riris package contains malicious code that poses significant risks to developers and the npm ecosystem. It is crucial to remove this package from your projects and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for ocha-klanting56-riris →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to manipulate developer reputation scores.
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your project's dependencies.
You should uninstall the package immediately and check your package-lock.json file for any remnants.
Yes, tools like Vulert can monitor your dependencies and alert you to vulnerabilities in real-time.
You can use the Vulert playground at Vulert Scanner to check your application for vulnerabilities without needing to sign up.