Malicious Code Injection in convincing_thrush_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-93804: Malicious code in convincing_thrush_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 'convincing_thrush_z3n' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts designed to manipulate the npm registry and inflate developer reputation scores through the automatic generation and publication of derivative packages.
Vulnerability Detail
The vulnerability in 'convincing_thrush_z3n' originates from its design to include autopublish scripts that modify the package.json file. This modification removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The ramifications include pollution of the npm registry, potential security risks for developers using these packages, and a compromised integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall convincing_thrush_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 'convincing_thrush_z3n' package and replace it with a trusted alternative. Additionally, you can monitor your package-lock.json file for any unauthorized changes that may indicate the presence of malicious packages.
Conclusion
The 'convincing_thrush_z3n' package poses a significant threat to the npm ecosystem due to its malicious code that modifies package.json and repopulates the registry with harmful variants. It is crucial for developers to remove this package and monitor their dependencies to maintain the integrity of their applications.
See every vulnerability recorded for convincing_thrush_z3n →
FAQ
The vulnerability involves malicious code that modifies package.json to remove private flags and republish variants, leading to npm registry pollution.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application using the Vulert playground at Vulert Scanner.
You should uninstall the package immediately using 'npm uninstall convincing_thrush_z3n' and check for any other affected packages.
Yes, using this package can lead to security risks, including unauthorized access to your project and potential reputation damage in the npm ecosystem.
Regularly audit your dependencies, use tools like Vulert for monitoring, and ensure you only install packages from trusted sources.