Malicious Code Injection in yuda-9 Package: A Threat to npm Ecosystem
Summary
MAL-2025-170601: Malicious code in yuda-9 (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-9 package is part of the npm ecosystem, primarily used for JavaScript development. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. The functionality of yuda-9 has been compromised, leading to significant security concerns due to its malicious payload.
Vulnerability Detail
The vulnerability in the yuda-9 package stems from its inclusion in a campaign that utilizes autopublish scripts to generate and publish derivative packages with randomized names. This malicious code modifies the package.json file to remove private flags, alters version numbers, and continuously republishes variants, thereby polluting the npm registry. The ramifications of this vulnerability include potential exposure of sensitive information, unauthorized access to systems, and damage to the reputation of developers associated with affected packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yuda-9
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 prevent the installation of the yuda-9 package by using npm's package-lock.json to monitor dependencies. You can also use the following command to uninstall the package: npm uninstall yuda-9.
Conclusion
The yuda-9 package poses a significant security risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities. Utilizing tools like Vulert can aid in maintaining the security of your projects.
See every vulnerability recorded for yuda-9 →
FAQ
The yuda-9 package is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through automated publishing.
The malicious code can modify your package.json file, remove private flags, and continuously publish variants, potentially leading to security vulnerabilities and reputation damage.
You should uninstall the yuda-9 package immediately and monitor your project for any unauthorized changes.
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 signing up.