Malicious Code Vulnerability in nabila-poke2: Exploitation of npm Packages
Summary
MAL-2025-161216: Malicious code in nabila-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
nabila-poke2 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate interactions with the tea protocol, which rewards developers for contributions. However, it has been compromised to include malicious scripts that manipulate package metadata and flood the npm registry with derivative packages.
Vulnerability Detail
The vulnerability in nabila-poke2 stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores and pollute the npm registry with numerous derivative packages. The origin of this vulnerability is linked to the exploitation of npm's package management system, allowing for unauthorized modifications and potential security risks for users relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nabila-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 measure, you can avoid using the nabila-poke2 package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The nabila-poke2 package has been identified as containing malicious code that compromises the integrity of npm packages. It is crucial for developers to remove this package and stay informed about updates and security practices to protect their applications.
See every vulnerability recorded for nabila-poke2 →
FAQ
nabila-poke2 is an npm package associated with the tea.xyz token reward campaign, designed to facilitate interactions with the tea protocol.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially exposing your application to security risks and affecting its integrity.
If you have installed nabila-poke2, it is recommended to remove it immediately and monitor for any updates or patches from the package maintainers.
You can use tools like Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities using the Vulert playground without any signup.
Yes, consider looking for alternative npm packages that offer similar functionality without the associated risks of malicious code.