Malicious Code Injection in tdjrgu-devapptea Package
Summary
MAL-2025-109520: Malicious code in tdjrgu-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 tdjrgu-devapptea package is part of the tea.xyz token reward campaign, which has been known to flood the npm registry with various packages. This package is designed to facilitate token rewards for developers by generating derivative packages. However, it has been compromised to include malicious scripts that can manipulate package metadata and publish unauthorized versions.
Vulnerability Detail
The vulnerability in the tdjrgu-devapptea package 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 and pollute the npm registry with unauthorized packages. The origin of this vulnerability is linked to a campaign that exploits npm's publishing mechanisms, leading to potential security risks for developers and users relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tdjrgu-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 tdjrgu-devapptea package and monitor your project for any unauthorized package publications. Regularly check your package-lock.json file for any unexpected changes.
Conclusion
The tdjrgu-devapptea package contains malicious code that poses a significant risk to developers and users. It is crucial to remove this package and monitor your project for any unauthorized changes. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.
See every vulnerability recorded for tdjrgu-devapptea →
FAQ
tdjrgu-devapptea is an npm package associated with the tea.xyz token reward campaign, designed to generate derivative packages for token rewards.
The malicious code can alter your package.json file, remove private flags, and publish unauthorized package versions, potentially compromising your project's integrity.
You should uninstall the tdjrgu-devapptea package immediately and monitor your project for any unauthorized changes.
Yes, you can use Vulert to monitor and alert for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.
Regularly audit your dependencies, use tools like Vulert for real-time monitoring, and stay updated on known vulnerabilities in the packages you use.