Malicious Code Injection in twctwm-devapptea Package
Summary
MAL-2025-109893: Malicious code in twctwm-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 twctwm-devapptea package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the generation and publication of derivative packages, which are often used to inflate developer reputation scores in exchange for token rewards. However, it has been identified as containing malicious code that compromises its integrity.
Vulnerability Detail
The vulnerability in the twctwm-devapptea package originates from its design to include autopublish scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This malicious behavior can result in a compromised development environment, where developers may unknowingly use tainted packages, potentially leading to security breaches or data leaks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall twctwm-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 measure, avoid using the twctwm-devapptea package and consider using alternative packages that provide similar functionality without the associated risks. Regularly monitor your dependencies for any updates or patches.
Conclusion
The twctwm-devapptea package has been identified as containing malicious code that poses significant risks to developers and their projects. Immediate action is required to remove the package and safeguard your development environment. Regular monitoring and using tools like Vulert can help in identifying and mitigating such vulnerabilities.
See every vulnerability recorded for twctwm-devapptea →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies package.json, removes private flags, and continuously republishes variants, which can lead to security vulnerabilities in your project.
You should uninstall the twctwm-devapptea package immediately and monitor your project for any unusual behavior.
Yes, Vulert can monitor your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.