Malicious Code Injection in hucfkz-devapptea Package - npm Vulnerability
Summary
MAL-2025-103823: Malicious code in hucfkz-devapptea (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 hucfkz-devapptea package is part of the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous packages. This package is designed to facilitate token rewards for developers by generating and publishing derivative packages. However, it has been compromised to include malicious scripts that manipulate package metadata and inflate developer reputation scores.
Vulnerability Detail
The vulnerability in the hucfkz-devapptea package originates from its association with a malicious campaign that employs autopublish scripts. These scripts modify the package.json file by removing private flags, altering version numbers, and generating random package names, which leads to the pollution of the npm registry. This can result in developers unknowingly using compromised packages, potentially exposing their applications to further vulnerabilities and security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hucfkz-devapptea
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 hucfkz-devapptea package and monitor your project for any dependencies that may have been affected by this malicious package. Regularly audit your package-lock.json file for any suspicious entries.
Conclusion
The hucfkz-devapptea package has been identified as a vector for malicious code injection, posing significant risks to developers and their applications. It is crucial to remove this package and monitor your projects for any dependencies that may have been affected. Utilizing tools like Vulert can help maintain the security of your software.
See every vulnerability recorded for hucfkz-devapptea →
FAQ
The hucfkz-devapptea package is part of a token reward campaign that generates and publishes derivative packages on npm, but it has been compromised to include malicious code.
This vulnerability can lead to the pollution of the npm registry, potentially exposing your application to further vulnerabilities and security risks if compromised packages are used.
You should uninstall the hucfkz-devapptea package immediately and check for any dependencies that may rely on it.
Yes, you can use Vulert to monitor and alert in real-time for open-source vulnerabilities in your software. You can check your application against this vulnerability using the Vulert playground without any signup.
Regularly audit your dependencies, use tools like Vulert to monitor vulnerabilities, and stay informed about the packages you include in your project.