Malicious Code Injection in yuda-3 Package: A Threat to npm Ecosystem
Summary
MAL-2025-170595: Malicious code in yuda-3 (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 yuda-3 package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for rewards. However, it has been compromised to include malicious scripts that manipulate package metadata.
Vulnerability Detail
The vulnerability in the yuda-3 package originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to pollution of the npm registry. This not only affects the integrity of the npm ecosystem but also poses a risk to developers who may unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yuda-3
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, you can remove the yuda-3 package from your project if it is not essential. Use the command: 'npm uninstall yuda-3'. Additionally, consider using a tool like Vulert to monitor your package-lock.json for vulnerabilities.
Conclusion
The yuda-3 package has been identified as containing malicious code that poses a significant risk to the npm ecosystem. It is crucial for developers to take immediate action by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for yuda-3 →
FAQ
The yuda-3 package 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 and may compromise the integrity of your project by introducing malicious code.
You should uninstall the yuda-3 package and update your project dependencies to remove any potential risks.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.
Regularly update your packages, monitor your dependencies using tools like Vulert, and review package metadata before installation.