Malicious Code Injection in yuda-26: A Threat to npm Packages
Summary
MAL-2025-170594: Malicious code in yuda-26 (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-26 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards through various scripts that automatically generate and publish derivative packages. However, it has been identified as containing malicious code that can compromise the integrity of the npm registry and the security of applications relying on it.
Vulnerability Detail
The vulnerability in yuda-26 originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to the continuous republishing of variants that pollute the npm registry. The ramifications include potential security risks for applications using these packages, as they may inadvertently incorporate malicious code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall yuda-26
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-26 package and replace it with a similar, trusted package that does not exhibit malicious behavior. Always verify the integrity of packages before including them in your project.
Conclusion
The yuda-26 package poses a significant threat due to its malicious code that alters package metadata and repopulates the npm registry with compromised packages. Immediate action is required to remove this package from your projects and to monitor for similar vulnerabilities in the future.
See every vulnerability recorded for yuda-26 →
FAQ
yuda-26 is an npm package associated with the tea.xyz token reward campaign, which has been identified to contain malicious code.
The malicious code modifies package.json files and can lead to the introduction of compromised packages into your application, posing security risks.
You should uninstall yuda-26 immediately using the command: npm uninstall yuda-26.
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 the yuda-26 vulnerability without any signup.