Malicious Code Injection in yuda-4 Package - npm Vulnerability
Summary
MAL-2025-170596: Malicious code in yuda-4 (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-4 package is part of the npm ecosystem, primarily used for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in the yuda-4 package stems from its 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 create derivative packages that pollute the npm registry, potentially leading to security risks for developers who unknowingly use these compromised packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits the npm ecosystem for malicious purposes.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yuda-4
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-4 package from your project by executing 'npm uninstall yuda-4'. Additionally, consider using a package-lock.json file to monitor your dependencies and prevent the installation of malicious packages.
Conclusion
The yuda-4 package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry with compromised packages. It is crucial to update or remove this package to protect your application from potential threats. Utilizing tools like Vulert can help you monitor your dependencies effectively.
See every vulnerability recorded for yuda-4 →
FAQ
The yuda-4 package is an npm package associated with the tea.xyz token reward campaign, which has been linked to malicious activities in the npm registry.
The vulnerability can lead to the injection of malicious code into your project, potentially compromising your application's security and integrity.
If you have installed yuda-4, it is recommended to uninstall it immediately and check your project for any unauthorized changes.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time about open-source vulnerabilities in your software.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.