Malicious Code Injection in yuda-7 Package: A Threat to npm Ecosystem
Summary
MAL-2025-170599: Malicious code in yuda-7 (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-7 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, often with randomized names, to inflate developer reputation scores for token rewards. The malicious behavior of yuda-7 poses significant risks to developers and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the yuda-7 package originates from its malicious code, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, effectively polluting the npm registry. The ramifications include potential security risks for developers who unknowingly use these compromised packages, as well as damage to the reputation of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yuda-7
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 avoid using the yuda-7 package and any of its derivatives. Additionally, consider using npm audit to identify and address vulnerabilities in your project's dependencies.
Conclusion
The yuda-7 package poses a significant threat to the npm ecosystem due to its malicious code that modifies package metadata and repopulates the registry with compromised packages. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities.
See every vulnerability recorded for yuda-7 →
FAQ
The yuda-7 package is an npm package associated with a token reward campaign that automates the generation and publication of derivative packages.
The vulnerability can lead to the inclusion of malicious code in your project, compromising its security and potentially affecting its functionality.
You should remove the yuda-7 package from your project immediately and monitor for any updates or patches that may address the vulnerability.
You can use tools like npm audit to check for vulnerabilities in your project's dependencies and take appropriate action.
Vulert monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.