Malicious Code Injection in ucok-poke32 Package - npm Vulnerability
Summary
MAL-2025-169652: Malicious code in ucok-poke32 (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 ucok-poke32 package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages. It is known for inflating developer reputation scores through the creation of numerous randomized package names, which can lead to pollution of the npm registry.
Vulnerability Detail
The vulnerability in the ucok-poke32 package stems from malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, which can lead to the continuous republishing of these variants. The origin of this issue is linked to the tea.xyz token reward campaign, which employs autopublish scripts to exploit the npm registry, potentially harming developers' reputations and the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ucok-poke32
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 ucok-poke32 package from your project by executing the command: npm uninstall ucok-poke32. This will prevent any malicious code from executing until a patch is available.
Conclusion
The ucok-poke32 package contains a significant vulnerability due to malicious code that alters package metadata and floods the npm registry with derivative packages. It is crucial to take immediate action by updating or uninstalling the package to protect your project.
See every vulnerability recorded for ucok-poke32 →
FAQ
ucok-poke32 is an npm package associated with the tea.xyz token reward campaign, designed to automate the publication of derivative packages.
The vulnerability can lead to the modification of your package.json file, potentially harming your project's integrity and reputation in the npm ecosystem.
If you have installed ucok-poke32, you should uninstall it immediately and monitor for any updates or patches.
Yes, Vulert can monitor your project for open-source vulnerabilities using just your package-lock.json file, providing real-time alerts.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.