Malicious Code Injection in Desirable Aphid Z3N Package
Summary
MAL-2025-93993: Malicious code in desirable_aphid_z3n (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
Desirable Aphid Z3N is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that modifies its own package.json file and republishes variants to pollute the npm registry.
Vulnerability Detail
The vulnerability in the Desirable Aphid Z3N package stems from its inclusion in a campaign that floods the npm registry with malicious packages. The malicious payload alters the package.json file by removing private flags, changing version numbers, and generating random package names. This behavior can lead to the proliferation of unwanted packages in the npm ecosystem, potentially compromising the integrity of applications that depend on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall desirable_aphid_z3n
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 Desirable Aphid Z3N package from your project by executing the command: npm uninstall desirable_aphid_z3n. This will prevent any malicious code from executing in your application.
Conclusion
The Desirable Aphid Z3N package has been identified as containing malicious code that poses a risk to the npm ecosystem. It is crucial for developers to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can help in monitoring and managing open-source vulnerabilities effectively.
See every vulnerability recorded for desirable_aphid_z3n →
FAQ
The main issue is that it contains malicious code that modifies its own package.json file and republishes variants to the npm registry, which can lead to the pollution of the registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By using the Vulert playground, you can check if your application is affected without any signup.
If you have installed the Desirable Aphid Z3N package, you should uninstall it immediately and check for any other affected packages in your project.
While specific exploits have not been detailed, the behavior of the package suggests that it could lead to the installation of unwanted or malicious packages in your project.
Regularly audit your dependencies, use tools like Vulert to monitor for vulnerabilities, and ensure that you only install packages from trusted sources.