Malicious Code Injection in aozalm-devapptea Package - npm Vulnerability
Summary
MAL-2025-99499: Malicious code in aozalm-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 aozalm-devapptea package is part of the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous derivative packages. These packages are designed to inflate developer reputation scores for token rewards. The package's functionality is compromised due to malicious scripts that manipulate its metadata and publish behavior.
Vulnerability Detail
The vulnerability originates from the aozalm-devapptea package, which contains malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially harming developers' reputations and project integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall aozalm-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 prevent the installation of the aozalm-devapptea package by adding it to your project's .npmrc file with the following line: 'package-lock=false'. This will help avoid any unintended installations until the package is removed.
Conclusion
The aozalm-devapptea package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial to remove this package from your project and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your open-source projects.
See every vulnerability recorded for aozalm-devapptea →
FAQ
The aozalm-devapptea package is part of a token reward campaign that has been associated with malicious activities on the npm registry.
The malicious code modifies your package metadata and can lead to the pollution of the npm registry, affecting your project's integrity and reputation.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed the aozalm-devapptea package, you should uninstall it immediately using 'npm uninstall aozalm-devapptea' and review your project's dependencies for any other vulnerabilities.
Currently, there are no patches available for the aozalm-devapptea package. The best course of action is to remove the package entirely.