Malicious Code Injection in verify-ayai-agial Package: A Threat to npm Users
Summary
MAL-2025-170341: Malicious code in verify-ayai-agial (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 verify-ayai-agial package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing capabilities to inflate developer reputation scores through the automatic generation and publication of derivative packages.
Vulnerability Detail
The vulnerability in the verify-ayai-agial package stems from its association with a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to pollute the npm registry and can lead to significant security risks, including the potential for executing harmful code in applications that depend on this package. The malicious payload is part of a broader strategy to exploit npm's infrastructure for token rewards, making it a serious concern for developers relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall verify-ayai-agial
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 verify-ayai-agial package from your project by executing the command: npm uninstall verify-ayai-agial. This will prevent any malicious code from being executed until a secure version is available.
Conclusion
The verify-ayai-agial package has been identified as a vector for malicious code injection, posing a significant risk to developers using npm. It is crucial to take immediate action by updating or removing the package and utilizing tools like Vulert to monitor for vulnerabilities in your projects.
See every vulnerability recorded for verify-ayai-agial →
FAQ
The verify-ayai-agial package is a JavaScript library available on npm, designed to assist developers in building applications. However, it has been compromised and is now associated with malicious activities.
The malicious code can modify your package.json, remove private flags, and continuously publish harmful variants, potentially leading to security vulnerabilities in your application.
If you have installed the verify-ayai-agial package, you should uninstall it immediately and check for any updates or patches that may address the vulnerability.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software. You can check if your application is affected by this vulnerability using the Vulert playground at Vulert Scanner without any signup.
To prevent future vulnerabilities, regularly update your packages, use tools like Vulert for monitoring, and review your dependencies for any suspicious activity.