Malicious Code Injection in shilang-poke97: A Threat to npm Users
Summary
MAL-2025-165921: Malicious code in shilang-poke97 (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-poke97 is an npm package that is part of a token reward campaign associated with the tea.xyz protocol. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in shilang-poke97 originates from its design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses risks to developers who may unknowingly install these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall shilang-poke97
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 avoid using the shilang-poke97 package altogether until a secure version is released. Additionally, consider using npm audit to identify and address vulnerabilities in your project dependencies.
Conclusion
The shilang-poke97 package poses a significant threat due to its malicious code that alters package configurations and republish variants. It is crucial for developers to take immediate action by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for shilang-poke97 →
FAQ
The main issue is that it contains malicious code that modifies package.json and republish variants, which can compromise the integrity of the npm registry.
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.
If you have installed shilang-poke97, it is recommended to remove it from your project and update your dependencies to eliminate any potential risks.
Yes, the impacts include the potential for security breaches in applications that use the compromised package, as well as pollution of the npm registry with malicious variants.
To prevent similar vulnerabilities, regularly audit your dependencies using tools like npm audit, and stay informed about security advisories related to the packages you use.