Malicious Code Injection in nokiragne-afgaafis Package: A Threat to npm Users
Summary
MAL-2025-162081: Malicious code in nokiragne-afgaafis (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 nokiragne-afgaafis package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is designed to facilitate the development and distribution of JavaScript applications. However, it 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 users alike.
Vulnerability Detail
The vulnerability in the nokiragne-afgaafis package stems from its association with a malicious campaign that floods the npm registry with derivative packages. These packages contain scripts that automatically modify the package.json file to remove private flags, change version numbers, and generate random names. This behavior not only pollutes the npm registry but also poses a risk of unintentional code execution and dependency issues for users who inadvertently install these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nokiragne-afgaafis
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 nokiragne-afgaafis package and its derivatives. Instead, consider using alternative packages that provide similar functionality without the associated risks. Always verify the integrity and source of packages before installation.
Conclusion
The nokiragne-afgaafis package poses a significant threat due to its malicious code injection capabilities. It is essential for developers to be vigilant and proactive in managing their dependencies. By uninstalling the affected package and utilizing tools like Vulert, you can safeguard your applications against potential vulnerabilities.
See every vulnerability recorded for nokiragne-afgaafis →
FAQ
The nokiragne-afgaafis package is an npm package that has been identified as part of a malicious campaign aimed at exploiting the npm registry.
The vulnerability can lead to the installation of malicious code, which may compromise your application's security and integrity.
If you have installed the nokiragne-afgaafis package, it is recommended to uninstall it immediately and check your project for any unintended changes.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.