Malicious Code Injection in madan-poke47: A Threat to npm Users
Summary
MAL-2025-158986: Malicious code in madan-poke47 (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-poke47 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 by providing reusable code components. However, it has been identified as part of a malicious campaign that aims to exploit npm's infrastructure, leading to potential security risks for developers and their applications.
Vulnerability Detail
The vulnerability in madan-poke47 originates from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that modify the package.json file to remove private flags, change version numbers, and generate random package names. The malicious payload continuously republishes these variants, polluting the npm registry and potentially compromising the integrity of applications that depend on these packages. This can lead to unauthorized access, data breaches, and a loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall madan-poke47
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, avoid using the madan-poke47 package and any other packages associated with the tea.xyz token reward campaign. Monitor your project for any unauthorized changes to your package.json file and revert them if necessary.
Conclusion
The madan-poke47 package poses a significant security risk due to its malicious code that modifies package configurations and floods the npm registry. It is essential for developers to remove this package and monitor their dependencies closely to maintain the security and integrity of their applications.
See every vulnerability recorded for madan-poke47 →
FAQ
Madan-poke47 is an npm package that has been identified as part of a malicious campaign aimed at exploiting the npm registry.
The vulnerability can lead to unauthorized modifications of your package.json file, potentially compromising your application's integrity and security.
You should uninstall the package immediately using 'npm uninstall madan-poke47' and review your project for any unauthorized changes.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.