Malicious Code Injection in ugfcox-devapptea: A Threat to npm Packages
Summary
MAL-2025-109947: Malicious code in ugfcox-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
ugfcox-devapptea is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards for developers by generating and publishing derivative packages. However, it has been identified as containing malicious code that can compromise the integrity of the npm registry and the projects that depend on it.
Vulnerability Detail
The vulnerability in ugfcox-devapptea originates from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to inflate developer reputation scores for token rewards, leading to pollution of the npm registry with numerous derivative packages. The ramifications include potential security risks for developers who unknowingly use these compromised packages, as well as a general degradation 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 ugfcox-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 workaround, you can monitor your project's dependencies using tools like Vulert, which analyzes your package-lock.json file to identify vulnerabilities in real-time. You can access the Vulert playground at https://vulert.com/scanner to check if your application is affected by this vulnerability without needing to sign up.
Conclusion
The ugfcox-devapptea 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 utilize tools like Vulert to monitor their dependencies for vulnerabilities.
See every vulnerability recorded for ugfcox-devapptea →
FAQ
ugfcox-devapptea is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the inclusion of malicious code in your project, compromising its security and integrity.
You should uninstall the package immediately using 'npm uninstall ugfcox-devapptea' and monitor your dependencies for any other vulnerabilities.
Regularly monitor your dependencies and use tools like Vulert to detect vulnerabilities in real-time.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.