Malicious Code Injection in tehnah-codfd-mant Package
Summary
MAL-2025-169079: Malicious code in tehnah-codfd-mant (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 tehnah-codfd-mant package is part of the npm ecosystem, primarily used for JavaScript development. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous packages. This package, like others in the campaign, is designed to manipulate developer reputation scores through automated publishing of derivative packages.
Vulnerability Detail
The vulnerability in the tehnah-codfd-mant package stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to significant security risks, including the potential for dependency confusion and the spread of malicious software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tehnah-codfd-mant
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 this package by using npm's package-lock.json file to monitor dependencies. Additionally, you can use the following command to uninstall the package if it is already installed: npm uninstall tehnah-codfd-mant.
Conclusion
The tehnah-codfd-mant package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies to prevent similar vulnerabilities in the future.
See every vulnerability recorded for tehnah-codfd-mant →
FAQ
The main issue is that it contains malicious code that modifies package.json and floods the npm registry with unwanted packages.
You can use Vulert, which monitors open-source vulnerabilities in real-time. By analyzing your package-lock.json file, it can alert you to any vulnerabilities, including this one.
You should uninstall the package immediately using the command: npm uninstall tehnah-codfd-mant.
Yes, regularly monitor your dependencies using tools like Vulert and keep your packages updated to the latest secure versions.
Detailed information can be found in the vulnerability report on the GitHub repository for malicious packages.