Malicious Code Injection in madan-poke25: A Threat to npm Ecosystem
Summary
MAL-2025-158962: Malicious code in madan-poke25 (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-poke25 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and deployment of applications. However, it has been identified as part of a malicious campaign that aims to manipulate the npm registry by generating and publishing numerous derivative packages with altered metadata. This behavior not only undermines the integrity of the npm ecosystem but also poses significant risks to developers and users relying on these packages.
Vulnerability Detail
The vulnerability in madan-poke25 originates from its involvement in a token reward campaign that exploits npm's publishing mechanisms. The package contains scripts designed to automatically modify its own package.json file, removing private flags and changing version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants, leading to pollution of the npm registry. This malicious activity can inflate developer reputation scores fraudulently and potentially introduce harmful code into applications that depend on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall madan-poke25
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 madan-poke25 package and monitor your project for any dependencies that may inadvertently include it. Regularly audit your dependencies using tools like npm audit to identify and address vulnerabilities.
Conclusion
The madan-poke25 package poses a significant threat to the npm ecosystem due to its malicious behavior aimed at manipulating the registry. It is essential for developers to be vigilant and take immediate action to remove this package from their projects. Utilizing tools like Vulert can help in monitoring for such vulnerabilities effectively.
See every vulnerability recorded for madan-poke25 →
FAQ
madan-poke25 is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
You should uninstall the package immediately and check your project for any dependencies that may include it.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.