Malicious Code Injection in madan-poke39: A Threat to npm Users
Summary
MAL-2025-158977: Malicious code in madan-poke39 (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 package madan-poke39 is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing system. It is designed to generate and publish derivative packages with randomized names, thereby inflating developer reputation scores for token rewards associated with the tea protocol. The malicious nature of this package poses significant risks to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability in madan-poke39 originates from its design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This not only compromises the integrity of the npm ecosystem but also exposes users to potential security risks as they may inadvertently install these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall madan-poke39
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 madan-poke39 and any other packages that are part of the tea.xyz token reward campaign. Regularly audit your package.json and package-lock.json files to identify and remove any suspicious packages.
Conclusion
The madan-poke39 package poses a significant threat to npm users due to its malicious code designed to exploit the npm registry. It is essential to remove this package and monitor your dependencies regularly to maintain the security of your projects. Utilizing tools like Vulert can help in identifying vulnerabilities in real-time.
See every vulnerability recorded for madan-poke39 →
FAQ
Madan-poke39 is an npm package that has been identified as part of a malicious campaign to exploit the npm registry by generating and publishing derivative packages.
The vulnerability can lead to the installation of malicious packages that may compromise your project's security and integrity.
You should uninstall the package immediately using the command npm uninstall madan-poke39 and audit your project for any other potentially malicious packages.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities in your software.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.