Malicious Code Injection in shilang-poke4: A Threat to npm Ecosystem
Summary
MAL-2025-165858: Malicious code in shilang-poke4 (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
shilang-poke4 is an npm package that is part of the tea.xyz token reward campaign, which has been associated with a series of malicious activities on the npm registry. The package is designed to facilitate the generation and publication of derivative packages, often with random names, to inflate developer reputation scores for token rewards. This behavior poses significant risks to the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in shilang-poke4 stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants, leading to pollution of the npm registry. This not only compromises the security of the affected packages but also undermines the trustworthiness of the npm ecosystem as a whole.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall shilang-poke4
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 shilang-poke4 package from your project by executing 'npm uninstall shilang-poke4'. This will prevent any malicious code from executing while you seek a secure alternative.
Conclusion
The shilang-poke4 package poses a significant threat due to its malicious code that alters package metadata and repopulates the npm registry with potentially harmful variants. It is crucial for developers to stay vigilant, update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for shilang-poke4 →
FAQ
shilang-poke4 is an npm package involved in a token reward campaign that has been found to contain malicious code.
The malicious code modifies your package.json file, removes private flags, and can lead to the publication of unauthorized packages, compromising your project's integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Simply upload your package-lock.json file to check for vulnerabilities.
Regularly audit your dependencies and use tools like Vulert to monitor for vulnerabilities in your open-source packages.
If an immediate update is not possible, consider uninstalling the package and looking for a secure alternative until a fix is available.