Malicious Code Injection in controlled_trout_z3n Package
Summary
MAL-2025-93786: Malicious code in controlled_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 controlled_trout_z3n package is part of the npm ecosystem, typically used for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. This package, like others in the campaign, is designed to manipulate developer reputation scores through automated publishing scripts.
Vulnerability Detail
The vulnerability in the controlled_trout_z3n package stems from its inclusion in a malicious campaign that utilizes scripts to modify package.json files. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This can result in compromised developer accounts and a degraded reputation for legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall controlled_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 avoid using the controlled_trout_z3n package and monitor your dependencies for any malicious activity. Regularly check your package-lock.json file for any unauthorized changes.
Conclusion
The controlled_trout_z3n package poses a significant risk due to its malicious code designed to manipulate npm registry entries. Immediate action is required to remove this package and safeguard your application from potential threats. Utilizing tools like Vulert can help in monitoring and preventing future vulnerabilities.
See every vulnerability recorded for controlled_trout_z3n →
FAQ
Controlled_trout_z3n is an npm package associated with the tea.xyz token reward campaign, which has been linked to malicious activities in the npm registry.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially compromising your application's integrity and developer reputation.
You should uninstall the controlled_trout_z3n package immediately and monitor your project for any unusual activity.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file. You can check if your application is affected by visiting the Vulert playground.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay informed about known vulnerabilities in the packages you use.