Malicious Code Injection in ramadan-poke31: A Threat to npm Ecosystem
Summary
MAL-2025-164616: Malicious code in ramadan-poke31 (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
ramadan-poke31 is an npm package that is part of a broader campaign involving token rewards for the tea.xyz protocol. This package, like others in the campaign, is designed to manipulate the npm registry by generating and publishing numerous derivative packages with randomized names. Its primary function is to inflate developer reputation scores, but it has been compromised to include malicious code.
Vulnerability Detail
The vulnerability in ramadan-poke31 originates from its involvement in a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly install these compromised packages, leading to potential security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ramadan-poke31
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 ramadan-poke31 package from your project by executing: npm uninstall ramadan-poke31. This will prevent any potential malicious code from executing in your application until a secure version is available.
Conclusion
The ramadan-poke31 package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to take immediate action by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for ramadan-poke31 →
FAQ
ramadan-poke31 is an npm package involved in a token reward campaign that has been compromised to include malicious code.
The malicious code modifies your package.json, removes private flags, and publishes derivative packages, which can lead to security vulnerabilities in your application.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you have installed ramadan-poke31, it is recommended to uninstall it immediately and check for any updates or patches.
To prevent future vulnerabilities, regularly audit your dependencies, use tools like Vulert for monitoring, and stay updated on security advisories related to the packages you use.