Malicious Code Detected in afglobal Package - Security Alert
Summary
MAL-2025-14138: Malicious code in afglobal (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 afglobal package is a Node.js library commonly used in web development for various functionalities. It provides developers with tools to enhance their applications. However, the package has been identified to contain malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in the afglobal package originates from the inclusion of malicious code that can compromise the security of applications using this library. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue affects all versions starting from 0, making it critical for users to address it immediately.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall afglobal
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, consider removing the afglobal package from your project if it is not essential. You can do this by executing the command: 'npm uninstall afglobal'. This will help mitigate the risk until a permanent fix is applied.
Conclusion
The afglobal package has been identified to contain malicious code, posing serious security risks. Users are urged to update or uninstall the package to protect their applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for afglobal →
FAQ
The afglobal package is a Node.js library used for various web development functionalities.
The malicious code can lead to unauthorized access and potential data breaches in applications using the package.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
If immediate updates are not possible, consider uninstalling the afglobal package as a temporary measure.
The vulnerability was discovered by Amazon Inspector, a security tool that helps identify vulnerabilities in applications.