Malicious Code Injection in uahrzn-devapptea Package: A Threat to npm Users
Summary
MAL-2025-109907: Malicious code in uahrzn-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 uahrzn-devapptea package is part of the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages are designed to inflate developer reputation scores through automated publishing scripts. The functionality of this package is compromised due to its malicious intent, posing a significant risk to users who may unknowingly integrate it into their projects.
Vulnerability Detail
The vulnerability in the uahrzn-devapptea package stems from its inclusion in a campaign that uses autopublish scripts to generate and publish derivative packages with randomized names. This not only pollutes the npm registry but also modifies the package.json file to remove private flags and change version numbers. The malicious payload can lead to unauthorized access and manipulation of project dependencies, ultimately compromising the integrity of applications that rely on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall uahrzn-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, you can remove the uahrzn-devapptea package from your project dependencies by running the following command: npm uninstall uahrzn-devapptea. Additionally, consider using alternative packages that do not have known vulnerabilities.
Conclusion
The uahrzn-devapptea package poses a significant threat due to its malicious code designed to manipulate npm registry entries. It is crucial for developers to be vigilant, remove affected packages, and utilize tools like Vulert to maintain the security of their applications.
See every vulnerability recorded for uahrzn-devapptea →
FAQ
The uahrzn-devapptea package is part of a malicious campaign that floods the npm registry with packages designed to inflate developer reputation scores.
This vulnerability can lead to unauthorized modifications in your project's dependencies, potentially compromising the security and functionality of your application.
You should immediately uninstall the uahrzn-devapptea package and check for any other dependencies that may have been affected.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can also check if your application is affected by this vulnerability using the Vulert playground.
Regularly update your dependencies, monitor for vulnerabilities using tools like Vulert, and review the npm registry for any security advisories related to the packages you use.