Malicious Code Injection in ocha-kacang97-ruro: A Threat to npm Packages
Summary
MAL-2025-106518: Malicious code in ocha-kacang97-ruro (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-kacang97-ruro' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often include scripts that manipulate package metadata and publish numerous derivative packages to inflate developer reputation scores.
Vulnerability Detail
The vulnerability in 'ocha-kacang97-ruro' originates from its association with a malicious campaign that employs autopublish scripts to modify the package.json file. This modification removes private flags, alters version numbers, and generates random package names, leading to pollution of the npm registry. The ramifications include potential security risks for developers who unknowingly use these packages, as they may inadvertently introduce malicious code into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ocha-kacang97-ruro
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, you can avoid using the 'ocha-kacang97-ruro' package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before installation.
Conclusion
The 'ocha-kacang97-ruro' package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies to maintain application security.
See every vulnerability recorded for ocha-kacang97-ruro →
FAQ
The vulnerability involves malicious code that modifies package metadata and floods the npm registry with derivative packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
You should uninstall the package immediately using 'npm uninstall ocha-kacang97-ruro' and look for secure alternatives.
While specific exploits have not been detailed, the manipulation of package metadata poses significant risks to application security.
Regularly audit your dependencies, use tools like Vulert for monitoring, and only install packages from trusted sources.