Malicious Code Injection in experimental_trout_z3n Package
Summary
MAL-2025-94389: Malicious code in experimental_trout_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 experimental_trout_z3n package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the experimental_trout_z3n package originates from its association with a campaign that floods the npm registry with malicious packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall experimental_trout_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 remove the experimental_trout_z3n package from your project by executing the following command: npm uninstall experimental_trout_z3n. This will prevent any malicious code from executing in your application until a secure version is available.
Conclusion
The experimental_trout_z3n package has been identified as containing malicious code that compromises the npm registry and poses risks to developers. It is crucial to take immediate action by updating or uninstalling the package to protect your applications from potential threats. Utilizing tools like Vulert can help monitor and alert for vulnerabilities in real-time.
See every vulnerability recorded for experimental_trout_z3n →
FAQ
The primary risk is that it contains malicious code that modifies package.json files and floods the npm registry with compromised packages, potentially affecting other developers.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If you cannot update the package right away, consider uninstalling it to mitigate the risk of malicious code execution in your application.
As of now, there are no specific patched versions mentioned. Always check the npm registry for updates regarding this package.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay informed about vulnerabilities in the packages you use.