Malicious Code Injection in lintang-tea2: npm Package Vulnerability
Summary
MAL-2025-158177: Malicious code in lintang-tea2 (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
lintang-tea2 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards for developers by generating and publishing derivative packages. However, it has been compromised, leading to significant security concerns. The package's functionality includes automatic publishing of variants to inflate developer reputation scores, which is now exploited for malicious purposes.
Vulnerability Detail
The vulnerability in lintang-tea2 originates from its association with the tea.xyz token reward campaign. It contains malicious scripts that modify the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising other packages. The malicious payload can affect developers' reputations and the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall lintang-tea2
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 lintang-tea2 package in your projects. Regularly monitor your package dependencies and consider using tools like Vulert to check for vulnerabilities in your package-lock.json file. You can use the Vulert playground at https://vulert.com/scanner to check if your application is affected by this vulnerability without any signup.
Conclusion
The lintang-tea2 package has been compromised, leading to significant security vulnerabilities that can affect developers and the npm ecosystem. It is crucial to uninstall this package and monitor your dependencies for any potential threats. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for lintang-tea2 →
FAQ
lintang-tea2 is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the pollution of the npm registry, affecting the integrity of your project and potentially compromising other packages.
You should uninstall the lintang-tea2 package immediately and check for any dependencies that may rely on it.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by vulnerabilities without requiring any signup.