Malicious Code Injection in potential_fox_z3n Package - npm Vulnerability
Summary
MAL-2025-95951: Malicious code in potential_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 potential_fox_z3n package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is linked to the tea.xyz token reward campaign, which has been known to distribute malicious packages. The primary function of this package is to facilitate the generation and publication of derivative packages, but it has been compromised to include harmful scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the potential_fox_z3n package. This code is designed to alter the package.json file by removing private flags, changing version numbers, and generating random package names. The malicious payload continuously republishes these variants to pollute the npm registry, potentially damaging the integrity of the ecosystem and affecting developers' reputations.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall potential_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, you can avoid using the potential_fox_z3n package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The potential_fox_z3n package has been identified as containing malicious code that can compromise your project's integrity. It is crucial to uninstall this package and monitor your project for vulnerabilities. Utilizing tools like Vulert can help you stay informed about potential risks in your dependencies.
See every vulnerability recorded for potential_fox_z3n →
FAQ
The potential_fox_z3n package is an npm package associated with the tea.xyz token reward campaign, which has been compromised to include malicious code.
The malicious code modifies your package.json file, removes private flags, and continuously republishes variants, which can lead to reputation damage and pollution of the npm registry.
You should uninstall the potential_fox_z3n package immediately using 'npm uninstall potential_fox_z3n' and monitor your project for any further vulnerabilities.
Yes, you can use Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.