Malicious Code Injection in thomas-tea-archive: A Threat to npm Packages
Summary
MAL-2025-109626: Malicious code in thomas-tea-archive (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
thomas-tea-archive is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the distribution of token rewards through various npm packages. However, it has been identified as containing malicious scripts that can compromise the integrity of the npm registry and the developer's reputation.
Vulnerability Detail
The vulnerability in thomas-tea-archive stems from malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for the tea protocol token rewards. The malicious payload continuously republishes these variants, leading to pollution of the npm registry and potential exploitation by other developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall thomas-tea-archive
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 measure, avoid using thomas-tea-archive and monitor your package dependencies for any signs of malicious activity. You can also use tools like Vulert to check your application for vulnerabilities. For example, you can visit the Vulert playground at https://vulert.com/scanner to assess if your application is affected by this vulnerability without needing to sign up.
Conclusion
The thomas-tea-archive package poses a significant risk due to its malicious code that alters package configurations and pollutes the npm registry. It is essential to remove this package and monitor your dependencies for any vulnerabilities to maintain the integrity of your projects.
See every vulnerability recorded for thomas-tea-archive →
FAQ
thomas-tea-archive is an npm package associated with the tea.xyz token reward campaign, designed to distribute token rewards through npm packages.
The malicious code modifies your package.json file, removes private flags, and can lead to the continuous republishing of compromised packages, which may affect your project's integrity.
You should uninstall the thomas-tea-archive package immediately using the command: npm uninstall thomas-tea-archive.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time. Visit https://vulert.com for more information.
Regularly audit your dependencies, use trusted sources for packages, and utilize vulnerability scanning tools to identify and mitigate risks.