Malicious Code Vulnerability in akbarzaheer Package
Summary
MAL-2025-170761: Malicious code in akbarzaheer (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 akbarzaheer package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, its functionality has been compromised, leading to significant security concerns.
Vulnerability Detail
The akbarzaheer package contains malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to continuously republish variants to pollute the npm registry. The vulnerability originates from the package being part of a broader campaign that exploits npm's publishing mechanisms, posing risks of reputation damage and potential security breaches for developers using affected packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall akbarzaheer
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, you can prevent the installation of the akbarzaheer package by using npm's package-lock.json to monitor dependencies. Ensure that your project does not include this package in any of its dependency trees.
Conclusion
The akbarzaheer package poses a significant security risk due to its malicious code that modifies project files and repopulates the npm registry with harmful variants. It is essential to remove this package and monitor your dependencies for vulnerabilities to maintain the integrity and security of your projects.
See every vulnerability recorded for akbarzaheer →
FAQ
The akbarzaheer package is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publication of derivative packages.
The vulnerability can lead to the pollution of the npm registry with malicious packages, potentially damaging your project's reputation and security.
You should uninstall the akbarzaheer package immediately using the command 'npm uninstall akbarzaheer' and check for any other affected packages.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.