Malicious Code Injection in ocha-gulai98-pore: A Threat to npm Packages
Summary
MAL-2025-98198: Malicious code in ocha-gulai98-pore (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
ocha-gulai98-pore is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate various functionalities within the npm ecosystem, but it has been compromised to include malicious scripts. These scripts are intended to manipulate the npm registry by generating and publishing derivative packages with altered metadata, thereby inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in ocha-gulai98-pore stems from its inclusion in a malicious campaign that exploits npm's package management system. The package contains scripts that modify the package.json file to remove private flags, change version numbers, and create random package names. This behavior can lead to the pollution of the npm registry, making it difficult for developers to find legitimate packages and potentially exposing their applications to further vulnerabilities. The malicious payload is designed to continuously republish variants, exacerbating the issue.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ocha-gulai98-pore
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 the malicious package by using npm's package-lock.json to monitor your dependencies. Ensure that your project does not include ocha-gulai98-pore in its dependencies. You can also use tools like Vulert to monitor your project for vulnerabilities without needing to access the code directly.
Conclusion
The ocha-gulai98-pore package has been identified as a vector for malicious code injection, posing significant risks to developers and their projects. It is essential to remove this package and monitor your dependencies to maintain the integrity of your applications. Utilizing tools like Vulert can help in identifying and managing vulnerabilities effectively.
See every vulnerability recorded for ocha-gulai98-pore →
FAQ
ocha-gulai98-pore is an npm package that has been compromised to include malicious scripts aimed at manipulating the npm registry.
The vulnerability can lead to the pollution of the npm registry and may expose your project to further security risks by introducing malicious code.
You should immediately uninstall the package using npm uninstall ocha-gulai98-pore and review your other dependencies for security.
You can use Vulert to monitor your project in real-time for open-source vulnerabilities by analyzing your package-lock.json file.
There is no patch for ocha-gulai98-pore as it is recommended to uninstall the package entirely to mitigate the risk.