Malicious Code Injection in Tehaah-codfd-mut Package: A Threat to npm Ecosystem
Summary
MAL-2025-168934: Malicious code in tehaah-codfd-mut (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
Tehaah-codfd-mut is an npm package that is part of 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 the presence of malicious code within the tehaah-codfd-mut package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially 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 tehaah-codfd-mut
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, avoid using the tehaah-codfd-mut package and any packages that depend on it. Regularly monitor your dependencies for any signs of malicious activity. You can also use tools like Vulert to check your package-lock.json for vulnerabilities without requiring code access or installation.
Conclusion
The tehaah-codfd-mut package poses a significant threat to the npm ecosystem due to its malicious code that modifies package metadata and repopulates the registry with compromised packages. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities.
See every vulnerability recorded for tehaah-codfd-mut →
FAQ
Tehaah-codfd-mut is an npm package associated with the tea.xyz token reward campaign, designed to automate the publication of derivative packages.
The vulnerability can lead to the pollution of the npm registry and may compromise the security of your project by introducing malicious code.
You should uninstall the tehaah-codfd-mut package immediately and check your package-lock.json for any references to it.
Yes, you can use Vulert to monitor your package-lock.json for open-source vulnerabilities in real-time without needing to install any software.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.