Malicious Code Injection in chosen_egret-appteadev Package
Summary
MAL-2025-100392: Malicious code in chosen_egret-appteadev (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 chosen_egret-appteadev package is part of the npm ecosystem, primarily used for various development tasks. However, it has been identified as part of a malicious campaign that aims to exploit npm's publishing system. This package is associated with the tea.xyz token reward initiative, which has led to the proliferation of numerous derivative packages designed to inflate developer reputation scores through automated publishing scripts.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the chosen_egret-appteadev package. This code 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. The primary risk includes pollution of the npm registry, which can affect developers relying on legitimate packages and potentially compromise their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall chosen_egret-appteadev
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 chosen_egret-appteadev package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The chosen_egret-appteadev package has been identified as containing malicious code that poses a significant risk to developers and their applications. It is crucial to remove this package and monitor your projects for vulnerabilities to ensure the integrity of your software.
See every vulnerability recorded for chosen_egret-appteadev →
FAQ
It is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to the pollution of the npm registry, potentially compromising your application and its dependencies.
You should uninstall the chosen_egret-appteadev package immediately and check for any dependencies that may be affected.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.