Malicious Code Injection in vocal_firefly_z3n Package
Summary
MAL-2025-97286: Malicious code in vocal_firefly_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 vocal_firefly_z3n package is part of the npm ecosystem, typically used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that exploits npm's publishing features. This package is associated with the tea.xyz token reward campaign, which aims to inflate developer reputation scores through the automatic generation and publishing of derivative packages.
Vulnerability Detail
The vulnerability in the vocal_firefly_z3n package stems from its malicious code, which modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to security risks, including the potential for dependency confusion and the spread of malicious software within the JavaScript ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall vocal_firefly_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 vocal_firefly_z3n package altogether and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The vocal_firefly_z3n package poses a significant security risk due to its malicious code that alters package metadata and repackages itself. It is crucial to remove this package from your projects and monitor for any further vulnerabilities using tools like Vulert.
See every vulnerability recorded for vocal_firefly_z3n →
FAQ
The vocal_firefly_z3n package is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
You should uninstall the vocal_firefly_z3n package immediately and monitor your application for any unusual behavior.
Yes, you can use Vulert to monitor and alert in real-time for open-source vulnerabilities in your software. It requires only the package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.