Malicious Code Injection in yummy_firefly_z3n Package
Summary
MAL-2025-99018: Malicious code in yummy_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 yummy_firefly_z3n package is part of the npm ecosystem, often utilized for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous packages. This package, like others in the campaign, is designed to manipulate npm's publishing mechanisms, potentially harming developers' reputations and polluting the registry.
Vulnerability Detail
The vulnerability in the yummy_firefly_z3n package stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, primarily themed around Indonesian culture, and continuously republishes these variants to the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use these compromised packages, leading to potential security breaches and reputation damage.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yummy_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 yummy_firefly_z3n package until a patched version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The yummy_firefly_z3n package poses significant risks due to its malicious code that alters package metadata and floods the npm registry. Developers are advised to update or remove the package and utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for yummy_firefly_z3n →
FAQ
The yummy_firefly_z3n package is an npm package that is part of a token reward campaign, often used in JavaScript applications.
The vulnerability involves the package modifying its own package.json file to remove private flags and generate random names, leading to pollution of the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground at Vulert Scanner without any signup.
If you are using the yummy_firefly_z3n package, you should update it to the latest patched version or consider removing it until a fix is available.
Using compromised packages can lead to security breaches, data loss, and damage to your reputation as a developer due to the potential for malicious code execution.