Malicious Code Injection in tehah-nutwar-adf: A Threat to npm Users
Summary
MAL-2025-169044: Malicious code in tehah-nutwar-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
tehah-nutwar-adf is an npm package that is part of a broader campaign involving the tea.xyz token reward system. This package, like many others in the campaign, is designed to manipulate the npm registry by generating and publishing numerous derivative packages with altered names and metadata. The primary function of this package is to inflate developer reputation scores for token rewards, but it has been compromised to include malicious scripts that can harm users and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in tehah-nutwar-adf stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags and change version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to clutter the npm registry. This not only affects the reputation of legitimate developers but also poses a risk of dependency confusion and potential exploitation by malicious actors.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tehah-nutwar-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, users can remove the tehah-nutwar-adf package from their project by running: npm uninstall tehah-nutwar-adf. This will prevent any potential malicious activity associated with this package until a fix is applied.
Conclusion
The tehah-nutwar-adf package poses a significant risk due to its malicious code designed to manipulate the npm registry. Users are advised to uninstall the package and monitor for updates. Utilizing tools like Vulert can help in identifying and managing vulnerabilities in your projects effectively.
See every vulnerability recorded for tehah-nutwar-adf →
FAQ
tehah-nutwar-adf is an npm package involved in a token reward campaign that has been identified as malicious due to its harmful scripts.
The vulnerability can lead to the pollution of the npm registry, dependency confusion, and potential exploitation by malicious actors.
You should uninstall the package immediately and monitor for any updates or patches that address the vulnerability.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.