Malicious Code Injection in marginal_impala-teagooddev Package
Summary
MAL-2025-105613: Malicious code in marginal_impala-teagooddev (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 marginal_impala-teagooddev 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, which can 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 originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially affecting other developers by inflating reputation scores fraudulently. The malicious scripts included in the package (auto.js, autopublish.js, etc.) are specifically designed to automate these actions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall marginal_impala-teagooddev
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 prevent the installation of this malicious package by using npm's package-lock.json file to monitor and restrict the use of vulnerable packages. Additionally, you can utilize tools like Vulert, which allows you to check for vulnerabilities in your application without requiring code access. You can visit the Vulert playground at https://vulert.com/scanner to check if your application is affected by this vulnerability.
Conclusion
The marginal_impala-teagooddev package poses a significant risk due to its malicious code that modifies package metadata and floods the npm registry. It is essential to remove this package from your project and utilize tools like Vulert to monitor for vulnerabilities effectively.
See every vulnerability recorded for marginal_impala-teagooddev →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the pollution of the npm registry and may affect your project's dependencies and reputation scores.
You should uninstall the marginal_impala-teagooddev package immediately and check for any dependencies that may be affected.
No patch is available for this specific package; the recommended action is to remove it from your project.
You can use tools like Vulert, which monitors your package-lock.json file for vulnerabilities in real-time without requiring code access.