Malicious Code Injection in agttrn-devapptea: A Threat to npm Ecosystem
Summary
MAL-2025-99279: Malicious code in agttrn-devapptea (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 agttrn-devapptea package is part of the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The functionality of this package is compromised due to its malicious intent, posing a significant risk to developers and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in agttrn-devapptea 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 variants that pollute the npm registry. The ramifications include potential security risks for developers who unknowingly integrate these malicious packages into their projects, as well as a degradation of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall agttrn-devapptea
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, avoid using the agttrn-devapptea package and monitor your project for any dependencies that may have inadvertently included it. Regularly audit your package-lock.json file to identify and remove any malicious packages.
Conclusion
The agttrn-devapptea package poses a significant threat to the npm ecosystem due to its malicious code injection. Developers are urged to uninstall this package and monitor their projects for any related vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for agttrn-devapptea →
FAQ
The agttrn-devapptea package is part of a malicious campaign that aims to inflate developer reputation scores through the automatic generation of derivative packages.
This vulnerability can lead to the inclusion of malicious code in your project, compromising its security and integrity.
You should uninstall the agttrn-devapptea package immediately and check for any dependencies that may rely on it.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.