Malicious Code Injection in vulnerable_elk_z3n Package
Summary
MAL-2025-110637: Malicious code in vulnerable_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 vulnerable_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 package's functionality has been compromised, making it a potential risk for developers who rely on it for their projects.
Vulnerability Detail
The vulnerability originates from the malicious code embedded in the vulnerable_elk_z3n package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which are then republished to the npm registry. The ramifications include pollution of the npm registry, potential security risks for developers using the package, and a compromised development environment. The malicious payload is designed to operate automatically, making it difficult for users to detect and mitigate the issue without intervention.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall vulnerable_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 prevent the malicious code from executing by removing the vulnerable_elk_z3n package from your project. Use the following command to uninstall it: 'npm uninstall vulnerable_elk_z3n'. Additionally, monitor your package-lock.json file for any unauthorized changes.
Conclusion
The vulnerable_elk_z3n package poses a significant risk due to its embedded malicious code, which can compromise the integrity of projects relying on it. Developers are encouraged to update or remove the package and utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for vulnerable_elk_z3n →
FAQ
vulnerable_elk_z3n is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores.
The malicious code modifies your package.json file and republishes variants to the npm registry, potentially compromising your project's integrity.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
If no patched version is available, consider removing the package from your project and replacing it with a secure alternative.
Regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.