Malicious Code Injection in tehnah-codifad-nutru: npm Package Vulnerability
Summary
MAL-2025-169092: Malicious code in tehnah-codifad-nutru (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 package 'tehnah-codifad-nutru' is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate automatic publishing of derivative packages, which can inflate developer reputation scores for token rewards. However, its functionality has been compromised, leading to significant security risks.
Vulnerability Detail
The vulnerability in 'tehnah-codifad-nutru' originates from 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 reputation damage for developers and potential exploitation of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall tehnah-codifad-nutru
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 remove the 'tehnah-codifad-nutru' package from your project by executing: npm uninstall tehnah-codifad-nutru. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The 'tehnah-codifad-nutru' package has been identified as containing malicious code that poses significant risks to developers and the npm ecosystem. It is crucial to take immediate action by updating or removing the package and utilizing monitoring tools like Vulert to stay informed about vulnerabilities.
See every vulnerability recorded for tehnah-codifad-nutru →
FAQ
The main issue is the presence of malicious code that modifies package.json and repackages it with random names, leading to potential security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Using the compromised package can lead to reputation damage, potential exploitation of your application, and pollution of the npm registry.
Regularly updating packages, using tools like Vulert for monitoring, and auditing dependencies can help prevent such vulnerabilities.
If immediate updates are not possible, consider uninstalling the package as a temporary measure to mitigate risks.