Malicious Code Injection in sharp_aardvark_z3n: A Threat to npm Ecosystem
Summary
MAL-2025-108612: Malicious code in sharp_aardvark_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
sharp_aardvark_z3n is an npm package that has been identified as part of a malicious campaign aimed at manipulating the npm registry. This package is associated with the tea.xyz token reward initiative, which has led to the proliferation of numerous derivative packages. These packages typically contain scripts designed to automatically publish variants with altered metadata, thereby inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the sharp_aardvark_z3n package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, primarily themed around Indonesian culture. The malicious payload continuously republishes these variants, leading to pollution of the npm registry and potential exploitation of developers who unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall sharp_aardvark_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 measure, avoid using the sharp_aardvark_z3n package and consider using alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The sharp_aardvark_z3n package poses a significant risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to remove this package from their projects and stay vigilant by using tools to monitor for vulnerabilities. By taking proactive measures, developers can protect their applications from potential threats.
See every vulnerability recorded for sharp_aardvark_z3n →
FAQ
sharp_aardvark_z3n is an npm package that has been linked to a malicious campaign aimed at manipulating the npm registry.
The malicious code can alter your package.json file, remove private flags, and generate random package names, leading to potential security risks and pollution of the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By using the Vulert playground, you can check if your application is affected without any signup.
If you have installed sharp_aardvark_z3n, you should uninstall it immediately using 'npm uninstall sharp_aardvark_z3n' and consider using alternative packages.
Yes, tools like npm audit and Vulert can help you identify and manage vulnerabilities in your dependencies effectively.