Malicious Code Injection in yuda-5: A Threat to npm Ecosystem
Summary
MAL-2025-170597: Malicious code in yuda-5 (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
yuda-5 is an npm package that is part of the tea.xyz token reward campaign, which has been associated with malicious activities. This package is designed to facilitate the automatic generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. Its functionality is compromised due to the presence of malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in yuda-5 originates from its association with the tea.xyz token reward campaign, which floods the npm registry with malicious packages. These packages contain scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names, leading to pollution of the npm registry. The ramifications include potential security risks for developers who unknowingly use these packages, as they could inadvertently introduce vulnerabilities into their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yuda-5
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 workaround, you can avoid using the yuda-5 package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity and reputation of packages before including them in your project.
Conclusion
The yuda-5 package poses a significant threat due to its malicious code designed to manipulate package metadata and pollute the npm registry. It is crucial for developers to remove this package from their projects and utilize trusted alternatives to maintain the integrity of their applications.
See every vulnerability recorded for yuda-5 →
FAQ
yuda-5 is an npm package linked to the tea.xyz token reward campaign, which has been identified as containing malicious code.
The malicious code can modify your package.json file, remove private flags, and publish random packages, potentially compromising your project's security.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed yuda-5, you should uninstall it immediately using 'npm uninstall yuda-5' and look for alternative packages.
Yes, always look for reputable packages on npm that serve similar purposes and have a good track record of security.