Malicious Code Injection in thoughtless_stoat_z3n: A Threat to npm Packages
Summary
MAL-2025-97006: Malicious code in thoughtless_stoat_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 'thoughtless_stoat_z3n' is part of the npm ecosystem and has been implicated in a malicious campaign associated with the tea.xyz token reward system. This package is designed to generate and publish derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. Its functionality is compromised due to the presence of malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in 'thoughtless_stoat_z3n' originates from its involvement in a campaign that floods the npm registry with malicious packages. These packages contain scripts that modify the 'package.json' file to remove private flags, alter version numbers, and generate random package names. The continuous republishing of these variants pollutes the npm registry, potentially leading to security risks for developers who unknowingly use these packages. The malicious payload can compromise the integrity of applications relying on this package, making it a significant threat.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall thoughtless_stoat_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 'thoughtless_stoat_z3n' package altogether. If it is already in use, consider replacing it with a reputable alternative package that provides similar functionality without the associated risks.
Conclusion
The 'thoughtless_stoat_z3n' package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies to ensure the integrity of their applications.
See every vulnerability recorded for thoughtless_stoat_z3n →
FAQ
The main issue is that it contains malicious code that modifies package metadata and floods the npm registry with derivative packages.
You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.
You should remove the package from your project and look for a secure alternative. If a patched version is released, update it immediately.
Using compromised packages can lead to security vulnerabilities, data breaches, and the potential for malicious code execution within your application.
Regularly monitor your dependencies using tools like Vulert, and keep your packages updated to the latest secure versions to minimize the risk of vulnerabilities.