Malicious Code Injection in ramadan-poke40: A Threat to npm Ecosystem
Summary
MAL-2025-164626: Malicious code in ramadan-poke40 (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-poke40 is an npm package that is part of a broader campaign aimed at exploiting the npm registry. This package is designed to participate in the tea.xyz token reward system, which incentivizes developers to publish packages. However, it has been compromised to include malicious scripts that manipulate package metadata and flood the registry with derivative packages.
Vulnerability Detail
The vulnerability in ramadan-poke40 arises from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior not only inflates developer reputation scores but also pollutes the npm registry with potentially harmful packages. The malicious payload is designed to continuously republish variants, making it difficult to track and mitigate the impact.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ramadan-poke40
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 ramadan-poke40 and any other packages that are part of the tea.xyz token reward campaign. Regularly audit your dependencies using tools like npm audit to identify and address vulnerabilities.
Conclusion
The ramadan-poke40 package poses a significant risk due to its malicious code that manipulates package metadata and floods the npm registry. It is crucial for developers to remove this package from their projects and monitor their dependencies for vulnerabilities to maintain the integrity of their applications.
See every vulnerability recorded for ramadan-poke40 →
FAQ
ramadan-poke40 is an npm package that has been compromised to include malicious code aimed at manipulating the npm registry.
The vulnerability can lead to the pollution of your project's dependencies and potentially expose your application to further security risks.
You should uninstall the package immediately using 'npm uninstall ramadan-poke40' and audit your other dependencies.
You can use tools like npm audit or services like Vulert, which monitors your package-lock.json for vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.