Malicious Code Injection in supreme_flyingfish_z3n Package
Summary
MAL-2025-109327: Malicious code in supreme_flyingfish_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 supreme_flyingfish_z3n package is part of the tea.xyz token reward campaign, which has been known to flood the npm ecosystem with malicious packages. These packages are designed to inflate developer reputation scores through the automatic generation and publication of derivative packages. The functionality of this package is compromised due to its malicious intent, which includes modifying package metadata and republishing variants to pollute the npm registry.
Vulnerability Detail
The vulnerability in the supreme_flyingfish_z3n package originates from its inclusion in a campaign that utilizes autopublish scripts to generate and publish numerous derivative packages with randomized names. This malicious payload alters the package.json file by removing private flags, changing version numbers, and creating random package names, thereby compromising the integrity of the npm registry. The ramifications include potential security risks for developers who unknowingly use these packages, as they may inadvertently contribute to the pollution of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall supreme_flyingfish_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 workaround, you can avoid using the supreme_flyingfish_z3n package altogether and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project's dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time without requiring access to your code.
Conclusion
The supreme_flyingfish_z3n package contains malicious code that poses a significant risk to developers and the npm ecosystem. It is crucial to remove this package and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for supreme_flyingfish_z3n →
FAQ
It is a package associated with the tea.xyz token reward campaign that has been identified as malicious.
The malicious code can modify your package.json file and republish variants, potentially compromising your project's integrity.
You should remove the supreme_flyingfish_z3n package from your project immediately and check for any alternative packages.
You can use Vulert to monitor your package-lock.json file for vulnerabilities in real-time without needing to access your code.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.