Malicious Code Injection in madan-poke2: A Threat to npm Packages
Summary
MAL-2025-158956: Malicious code in madan-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
The madan-poke2 package is part of the npm ecosystem, primarily used for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been linked to a series of malicious packages flooding the npm registry. These packages are designed to manipulate developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability in madan-poke2 stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to significant security risks, including the potential for unauthorized access to sensitive data and the compromise of 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 madan-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 remove the madan-poke2 package from your project by executing 'npm uninstall madan-poke2'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The madan-poke2 package poses a significant security threat due to its malicious code that manipulates npm package management. It is imperative for developers to take immediate action by updating or removing the package to safeguard their applications and maintain the integrity of the npm ecosystem.
See every vulnerability recorded for madan-poke2 →
FAQ
The vulnerability involves malicious code that alters package.json files and repackages npm modules with harmful intent.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
Using madan-poke2 can lead to unauthorized access to sensitive data and compromise the integrity of your application due to the malicious code it contains.
It is crucial to check the npm registry for any patched versions of madan-poke2 and update accordingly.
As a temporary measure, uninstall the madan-poke2 package to mitigate the risk until a secure version is available.