Malicious Code Injection in matane-cookik-rai: A Threat to npm Users
Summary
MAL-2025-160222: Malicious code in matane-cookik-rai (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 matane-cookik-rai package is part of the npm ecosystem, primarily used for JavaScript development. It is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious packages flooding the npm registry. These packages are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names.
Vulnerability Detail
The vulnerability in matane-cookik-rai originates from its association with malicious scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and create random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only compromises the integrity of the npm ecosystem but also poses a risk to developers who may unknowingly use these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall matane-cookik-rai
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 remove the matane-cookik-rai package from your project by executing the command: npm uninstall matane-cookik-rai. This will prevent any potential exploitation until a secure version is released.
Conclusion
The matane-cookik-rai package poses a significant risk due to its malicious code that modifies essential project files and floods the npm registry with harmful variants. It is crucial for developers to stay informed about such vulnerabilities and take immediate action to protect their projects.
See every vulnerability recorded for matane-cookik-rai →
FAQ
matane-cookik-rai is an npm package associated with the tea.xyz token reward campaign, which has been identified as malicious.
The vulnerability can lead to the modification of your package.json file and the introduction of malicious packages into your project, compromising its security.
You should uninstall the matane-cookik-rai package immediately and monitor for any updates or patches from the maintainers.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.