Malicious Code Injection in tehah-nuya-buyada Package
Summary
MAL-2025-169050: Malicious code in tehah-nuya-buyada (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 tehah-nuya-buyada 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 token rewards. However, it has been identified as containing malicious scripts that compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from malicious code embedded within the tehah-nuya-buyada package. This code modifies the package.json file by removing private flags, altering version numbers, and generating random package names, which can lead to the pollution of the npm registry. The malicious payload is designed to continuously republish these variants, potentially affecting the reputation of legitimate developers and the overall security of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tehah-nuya-buyada
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 affected package by using npm's package-lock.json file to lock your dependencies. This will ensure that the malicious package is not included in your project. Additionally, you can monitor your dependencies using tools like Vulert, which can alert you to vulnerabilities in real-time without requiring code access.
Conclusion
The tehah-nuya-buyada package has been identified as containing malicious code that compromises the npm registry. It is essential to remove this package from your project and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for tehah-nuya-buyada →
FAQ
Tehah-nuya-buyada is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The malicious code modifies your package.json file, removes private flags, and can lead to the pollution of the npm registry, affecting your project's integrity.
You should uninstall the package immediately using the command 'npm uninstall tehah-nuya-buyada' and monitor your dependencies for any further vulnerabilities.
Yes, you can use tools like Vulert to monitor your dependencies for vulnerabilities in real-time and ensure that you are alerted to any issues as they arise.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.