Malicious Code Vulnerability in @baanx/abis Package
Summary
MAL-2026-16351: Malicious code in @baanx/abis (npm). Affects @baanx/abis versions 9.9.11. 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 @baanx/abis package is an npm library designed for interacting with smart contract Application Binary Interfaces (ABIs). It is utilized by developers to facilitate communication with blockchain networks. However, this package has been found to contain malicious code that compromises user data and system integrity.
Vulnerability Detail
The vulnerability originates from a malicious script within the package that executes during the installation process. Specifically, the script collects sensitive information such as the installer's OS username, hostname, and current working directory. This data is then sent to an attacker-controlled domain via DNS tunneling. The malicious behavior is triggered automatically upon running 'npm install' or when the package is required in a project, posing significant risks to user privacy and security.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @baanx/abis
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 @baanx/abis package until a secure version is released. Additionally, consider using alternative libraries that provide similar functionality without the associated risks.
Conclusion
The @baanx/abis package contains a serious vulnerability due to embedded malicious code that exfiltrates user data. It is crucial for developers using this package to update to a secure version and consider alternative libraries to ensure the safety of their applications.
See every vulnerability recorded for @baanx/abis →
FAQ
The malicious code collects sensitive information from the user's system and sends it to an attacker-controlled domain.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
If you have installed the @baanx/abis package, it is recommended to update it immediately to the latest patched version using 'npm update @baanx/abis'.
Yes, consider using other libraries that provide ABI interaction capabilities without the security risks associated with @baanx/abis.
Failure to address this vulnerability can lead to unauthorized access to sensitive information, compromising user privacy and potentially leading to further exploitation.