Malicious Code Injection in anisyafira Package: npm Vulnerability Overview
Summary
MAL-2025-170891: Malicious code in anisyafira (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 anisyafira package is part of the npm ecosystem, which is widely used for JavaScript package management. It is often utilized in various projects to facilitate the integration of reusable code components. However, this package has been identified as part of a malicious campaign that aims to exploit npm's publishing mechanisms, leading to potential security risks for developers and their applications.
Vulnerability Detail
The vulnerability in the anisyafira package stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts designed to automatically modify package.json files, removing private flags, altering version numbers, and generating random package names. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these compromised packages in their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall anisyafira
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 anisyafira package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your project's dependencies to identify and remove any potentially malicious packages.
Conclusion
The anisyafira package poses a significant security risk due to its malicious code injection capabilities. Developers should take immediate action to remove this package and monitor their projects for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications by providing real-time alerts for open-source vulnerabilities.
See every vulnerability recorded for anisyafira →
FAQ
The anisyafira package is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
The vulnerability can lead to the injection of malicious code into your project, potentially compromising its security and integrity.
You should uninstall the anisyafira package immediately and check your project for any other compromised packages.
You can use tools like Vulert, which monitors your package-lock.json file 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.