Malicious Code Injection in keyla-poke2: A Threat to npm Users
Summary
MAL-2025-157585: Malicious code in keyla-poke2 (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
keyla-poke2 is an npm package that is part of the tea.xyz token reward campaign, which has been associated with a surge of malicious packages on the npm registry. This package is designed to interact with the npm ecosystem, but it has been compromised to include harmful scripts that manipulate package metadata and publish unauthorized variants.
Vulnerability Detail
The vulnerability in keyla-poke2 stems from its inclusion in a malicious campaign that utilizes scripts to automatically generate and publish derivative packages with altered metadata. These scripts remove private flags from package.json, change version numbers, and create random package names, leading to pollution of the npm registry. This not only affects the integrity of the npm ecosystem but also poses risks to developers who may unknowingly install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall keyla-poke2
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 avoid using the keyla-poke2 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your dependencies using tools like npm audit to identify and address vulnerabilities.
Conclusion
The keyla-poke2 package has been identified as part of a malicious campaign that compromises the npm ecosystem. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can enhance security by providing real-time alerts for open-source vulnerabilities.
See every vulnerability recorded for keyla-poke2 →
FAQ
keyla-poke2 is an npm package that has been linked to a malicious campaign aimed at manipulating the npm registry.
The malicious code can alter your package.json file, leading to the publication of unauthorized package variants and potentially compromising your project's integrity.
You should remove the keyla-poke2 package from your project immediately and check for any unauthorized changes in your package.json file.
Yes, tools like Vulert can monitor your package-lock.json file for vulnerabilities in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.