Malicious Code Injection in ucok-poke22 Package: A Threat to npm Users
Summary
MAL-2025-169641: Malicious code in ucok-poke22 (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-poke22 package is part of a series of malicious packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior not only compromises the integrity of the npm registry but also poses significant risks to developers who may unknowingly use these packages in their projects.
Vulnerability Detail
The vulnerability in the ucok-poke22 package stems from its malicious code that modifies the package.json file to remove private flags and changes version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This can lead to developers inadvertently using compromised packages, which may contain further vulnerabilities or malicious payloads.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ucok-poke22
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, avoid using the ucok-poke22 package and any other packages associated with the tea.xyz token reward campaign. Regularly audit your dependencies to ensure no malicious packages are included.
Conclusion
The ucok-poke22 package poses a significant threat to npm users due to its malicious code designed to manipulate package metadata and flood the npm registry. It is essential to remove this package from your projects and utilize tools like Vulert to monitor for vulnerabilities in your dependencies.
See every vulnerability recorded for ucok-poke22 →
FAQ
ucok-poke22 is a malicious npm package that is part of a campaign to inflate developer reputation scores by flooding the npm registry with derivative packages.
You can use Vulert, a tool that monitors and alerts for open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can help you identify affected packages.
Using the ucok-poke22 package can expose your project to further vulnerabilities and malicious code, potentially compromising your application's security.
Regularly audit your dependencies, use tools like Vulert to monitor for vulnerabilities, and avoid using packages from untrusted sources.
Immediately uninstall the package using 'npm uninstall ucok-poke22' and check your project for any other potentially compromised packages.