Malicious Code Injection in ramadan-poke18 Package - npm Vulnerability
Summary
MAL-2025-164601: Malicious code in ramadan-poke18 (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 ramadan-poke18 package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The primary function of ramadan-poke18 is to serve as a token reward mechanism, but it has been compromised to include harmful scripts that manipulate package data.
Vulnerability Detail
The vulnerability in ramadan-poke18 arises from the inclusion of malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, leading to the automatic publication of derivative packages. This behavior not only inflates developer reputation scores for token rewards but also pollutes the npm registry, making it difficult for developers to find legitimate packages. The origin of this issue is linked to the tea.xyz token reward campaign, which employs such tactics to exploit the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ramadan-poke18
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, avoid using the ramadan-poke18 package and monitor your project for any dependencies that may have inadvertently included it. You can also use the following command to check for vulnerabilities in your project: npm audit.
Conclusion
The ramadan-poke18 package poses a significant risk due to its malicious code that alters package data and publishes harmful derivatives. It is crucial for developers to remove this package and monitor their projects for vulnerabilities. Utilizing tools like Vulert can help in identifying and mitigating such risks in real-time.
See every vulnerability recorded for ramadan-poke18 →
FAQ
ramadan-poke18 is an npm package associated with the tea.xyz token reward campaign, designed to manipulate package data for malicious purposes.
The malicious code modifies your package.json file, removes private flags, and publishes derivative packages, which can lead to reputation inflation and registry pollution.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
You should uninstall the ramadan-poke18 package and check for any alternative packages that provide similar functionality without the associated risks.
Currently, there is no patched version of ramadan-poke18 available. The best course of action is to remove the package from your project.