Malicious Code Injection in thtmxy-devapptea Package - npm Vulnerability
Summary
MAL-2025-109650: Malicious code in thtmxy-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 thtmxy-devapptea package is part of the tea.xyz token reward campaign, which has been associated with a surge of malicious packages on the npm registry. This package is designed to facilitate the generation and publication of derivative packages, often with randomized names, to manipulate developer reputation scores for token rewards. The presence of such malicious scripts poses a significant risk to developers and their projects.
Vulnerability Detail
The vulnerability in the thtmxy-devapptea package originates from its inclusion in a campaign that floods the npm registry with malicious packages. These packages contain scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only pollutes the npm registry but also compromises the integrity of projects that depend on these packages, potentially leading to security breaches and loss of developer trust.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall thtmxy-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, you can remove the thtmxy-devapptea package from your project by executing the following command: npm uninstall thtmxy-devapptea. This will prevent any malicious scripts from executing in your environment until a fix is applied.
Conclusion
The thtmxy-devapptea package poses a significant security risk due to its malicious code designed to manipulate npm registry reputation scores. It is essential for developers to be vigilant, remove affected packages, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for thtmxy-devapptea →
FAQ
thtmxy-devapptea is an npm package associated with the tea.xyz token reward campaign, which has been linked to the distribution of malicious code.
This vulnerability can lead to the modification of your package.json file and the introduction of malicious scripts, which can compromise your project's security.
If you have installed thtmxy-devapptea, it is crucial to uninstall it immediately and monitor your project for any unauthorized changes.
Yes, you can use Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities. You can check your application for vulnerabilities using the Vulert playground without any signup.
Regularly update your dependencies, use tools like Vulert for monitoring, and review your package.json and package-lock.json files for any suspicious packages.