Malicious Code Injection in miniature_fox_z3n: A Threat to npm Packages
Summary
MAL-2025-105850: Malicious code in miniature_fox_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 package miniature_fox_z3n is part of a broader ecosystem of npm packages that have been implicated in a token reward campaign. This package, like others in its category, is designed to manipulate the npm registry by generating and publishing numerous derivative packages with randomized names. The intent behind this behavior is to inflate developer reputation scores for rewards associated with the tea protocol token. Such practices compromise the integrity of the npm ecosystem and pose risks to developers and users alike.
Vulnerability Detail
The vulnerability in miniature_fox_z3n stems from its malicious payload that modifies the package.json file. This includes removing private flags, altering version numbers, and generating random package names, which can lead to the pollution of the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to automate the creation and publication of these malicious packages. The ramifications include potential security risks for users who might unknowingly install these compromised packages, leading to further exploitation or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall miniature_fox_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, avoid using the miniature_fox_z3n package and consider using alternative packages that provide similar functionality without the associated risks. Always review the packages you intend to use for any known vulnerabilities.
Conclusion
The miniature_fox_z3n package poses a significant security risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to be vigilant and remove such packages from their projects. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in real-time, ensuring a more secure development environment.
See every vulnerability recorded for miniature_fox_z3n →
FAQ
miniature_fox_z3n is an npm package involved in a token reward campaign that generates and publishes derivative packages to inflate developer reputation scores.
The vulnerability can lead to the installation of malicious code, which may compromise your project's security and integrity.
You should uninstall the miniature_fox_z3n package immediately using the command: npm uninstall miniature_fox_z3n.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just package-lock.json.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.