Malicious Code Injection in ucok-poke72: A Threat to npm Users
Summary
MAL-2025-169696: Malicious code in ucok-poke72 (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
ucok-poke72 is an npm package that has been identified as part of a malicious campaign associated with the tea.xyz token reward system. This package is designed to manipulate the npm registry by generating and publishing numerous derivative packages with randomized names. Its primary function is to inflate developer reputation scores in exchange for token rewards, which poses a significant risk to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in ucok-poke72 stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, effectively polluting the npm registry. The origin of this issue is linked to a broader campaign that exploits npm's publishing mechanisms, potentially allowing attackers to compromise the reputation of legitimate developers and disrupt the ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ucok-poke72
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 ucok-poke72 and any other packages associated with the tea.xyz token reward campaign. Monitor your package-lock.json file for any unauthorized changes and remove any suspicious packages immediately.
Conclusion
The ucok-poke72 package poses a significant threat to npm users due to its malicious code designed to manipulate the npm registry. It is essential to remove this package and monitor your dependencies for any vulnerabilities. Utilizing tools like Vulert can aid in maintaining the security of your projects.
See every vulnerability recorded for ucok-poke72 →
FAQ
ucok-poke72 is an npm package identified as part of a malicious campaign aimed at inflating developer reputation scores through the generation of numerous derivative packages.
This vulnerability can compromise the integrity of your project by introducing malicious code, altering your package.json file, and potentially leading to the publication of unauthorized packages.
If you have installed ucok-poke72, you should uninstall it immediately using the command 'npm uninstall ucok-poke72' and review your project for any other suspicious packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time. You can check your application for vulnerabilities using the Vulert playground without needing to sign up.
Yes, there are several tools available, including npm audit and Vulert, which can help you identify and manage vulnerabilities in your npm packages.