Malicious Code Injection in tehah-nuia-adf Package - npm Vulnerability
Summary
MAL-2025-169029: Malicious code in tehah-nuia-adf (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-nuia-adf package is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to various malicious activities aimed at inflating developer reputation scores. The package's functionality is compromised due to the presence of autopublish scripts that generate and publish derivative packages with altered metadata, leading to potential security risks.
Vulnerability Detail
The vulnerability in the tehah-nuia-adf package stems from malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to continuously republish variants to the npm registry, polluting it with potentially harmful packages. The origin of this vulnerability is tied to the tea.xyz token reward campaign, which exploits npm's publishing mechanisms to inflate scores fraudulently. The ramifications include the risk of developers unknowingly integrating compromised packages into their projects, leading to security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tehah-nuia-adf
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 tehah-nuia-adf package until a secure version is released. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which analyzes your package-lock.json file to alert you in real-time about open-source vulnerabilities.
Conclusion
The tehah-nuia-adf package has been identified as containing malicious code that poses significant security risks to developers using it. It is essential to take immediate action by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities in your projects.
See every vulnerability recorded for tehah-nuia-adf →
FAQ
The tehah-nuia-adf package is an npm package associated with the tea.xyz token reward campaign, which has been linked to malicious activities.
The malicious code modifies package metadata, potentially leading to the integration of compromised packages into your project, which can result in security vulnerabilities.
If you have installed the tehah-nuia-adf package, you should update it to a patched version or remove it entirely from your project to mitigate risks.
You can use Vulert to monitor your project for vulnerabilities by analyzing your package-lock.json file. This tool provides real-time alerts for open-source vulnerabilities.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.