Malicious Code Injection in fun_elk_z3n Package - npm Vulnerability
Summary
MAL-2025-102968: Malicious code in fun_elk_z3n (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 fun_elk_z3n package is part of the npm ecosystem, which is widely used for JavaScript development. This package has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package poses significant risks to developers and users alike.
Vulnerability Detail
The vulnerability in the fun_elk_z3n package arises from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to pollute the npm registry and can lead to the unintentional installation of compromised packages by developers. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fun_elk_z3n
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 fun_elk_z3n package until a secure version is released. Additionally, consider using npm audit to identify and mitigate vulnerabilities in your project dependencies.
Conclusion
The fun_elk_z3n package poses a significant security risk due to its malicious code that modifies package metadata and floods the npm registry. It is crucial for developers to remain vigilant, update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for fun_elk_z3n →
FAQ
fun_elk_z3n is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The vulnerability can lead to the installation of compromised packages, potentially introducing security risks and instability to your project.
If you have installed fun_elk_z3n, it is recommended to remove it from your project and update to a secure version if available.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.