Malicious Code Injection in pilka-luniu-kan: A Threat to npm Packages
Summary
MAL-2025-164197: Malicious code in pilka-luniu-kan (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 package 'pilka-luniu-kan' 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 linked to a series of malicious activities aimed at inflating developer reputation scores. The presence of autopublish scripts in this package indicates its functionality is compromised, leading to potential security risks for developers using it.
Vulnerability Detail
The vulnerability in 'pilka-luniu-kan' originates from its association with a malicious campaign that modifies the package.json file to remove private flags and alters version numbers. It generates random package names and continuously republishes variants to pollute the npm registry. This not only affects the integrity of the npm ecosystem but also poses a risk to developers who may unknowingly use 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 pilka-luniu-kan
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 'pilka-luniu-kan' package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The 'pilka-luniu-kan' package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry with compromised versions. Developers are advised to update or remove this package and utilize tools like Vulert for ongoing vulnerability monitoring.
See every vulnerability recorded for pilka-luniu-kan →
FAQ
The vulnerability involves malicious code that modifies package.json files and republishes variants to the npm registry, compromising the integrity of the package.
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 any signup.
If you have installed this package, it is recommended to remove it and update to a secure version or use an alternative package.
While specific exploits have not been detailed, the malicious behavior of the package can lead to security breaches in applications that utilize it.
Vulert uses your package-lock.json to monitor and alert you in real-time for any open-source vulnerabilities, ensuring your software remains secure.