Malicious Code Injection in akifmasood Package: npm Vulnerability Overview
Summary
MAL-2025-170767: Malicious code in akifmasood (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 akifmasood package is part of the npm ecosystem, which is widely used for managing JavaScript packages. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing mechanisms. The primary functionality of akifmasood is to serve as a token reward mechanism, but it has been compromised to include harmful scripts that manipulate package metadata and flood the npm registry with unwanted packages.
Vulnerability Detail
The vulnerability originates from the akifmasood package being associated with the tea.xyz token reward campaign. It contains malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the automatic generation and republishing of derivative packages, which can inflate developer reputation scores fraudulently and pollute the npm registry with numerous unwanted packages. The ramifications include potential security risks for users who unknowingly install these compromised packages, as well as damage to the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall akifmasood
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 avoid using the akifmasood package altogether and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your package-lock.json file for any unauthorized changes using tools like Vulert.
Conclusion
The akifmasood package has been identified as a malicious entity within the npm ecosystem, posing significant risks to developers and users. It is essential to remove this package from your projects and utilize tools like Vulert to monitor for vulnerabilities in real-time. Staying informed and proactive can help maintain the security and integrity of your software.
See every vulnerability recorded for akifmasood →
FAQ
The akifmasood package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to the installation of malicious code, which may compromise your project's security and integrity.
You should uninstall the akifmasood package immediately using 'npm uninstall akifmasood' and monitor your project for any unauthorized changes.
Yes, you can use Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring access to your code.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.