Malicious Code Vulnerability in yang-teadev Package
Summary
MAL-2025-111153: Malicious code in yang-teadev (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 yang-teadev package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. It is designed to facilitate various development tasks but has been compromised to include malicious scripts that manipulate package metadata. This vulnerability allows for the automatic generation and publication of derivative packages, which can lead to reputation inflation and pollution of the npm registry.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the yang-teadev package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. The scripts are designed to continuously republish these variants, which can lead to significant pollution of the npm registry and potential security risks for developers who unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yang-teadev
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, you can avoid using the yang-teadev package altogether. If it is already in use, consider removing it from your package.json and running npm install to clean up your dependencies.
Conclusion
The yang-teadev package has been identified as containing malicious code that can compromise your project's integrity. It is crucial to remove this package and stay informed about any updates or patches. Utilizing tools like Vulert can help you monitor your dependencies for vulnerabilities effectively.
See every vulnerability recorded for yang-teadev →
FAQ
yang-teadev is an npm package associated with the tea.xyz token reward campaign, designed to assist with development tasks.
The malicious code modifies your package.json, removes private flags, and generates random package names, potentially leading to security vulnerabilities and npm registry pollution.
You should remove the yang-teadev package from your project and monitor for any updates or patches that may be released.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.