Critical Malicious Code Vulnerability in @dbbhk/ui-components Package
Summary
MAL-2026-16319: Malicious code in @dbbhk/ui-components (npm). Affects @dbbhk/ui-components versions 99.0.0. 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 @dbbhk/ui-components package is an npm library designed for user interface components. It is intended for use in web applications, providing reusable UI elements. However, this package has been found to contain malicious code that executes during the installation process, posing significant security risks to users and their environments.
Vulnerability Detail
The vulnerability originates from the @dbbhk/ui-components@99.0.0 package, which includes preinstall and postinstall hooks in its package.json file that execute a script named callback.js. This script automatically runs when the package is installed via npm, allowing it to query sensitive AWS instance metadata and environment variables for credentials. It indiscriminately collects sensitive information such as AWS IAM role credentials, various API tokens, and other secrets, sending this data to a hardcoded Telegram bot. This poses a severe risk of credential theft and unauthorized access to cloud resources.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @dbbhk/ui-components
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, avoid installing the @dbbhk/ui-components package until a patched version is released. Additionally, consider using npm audit to identify and mitigate vulnerabilities in your project dependencies.
Conclusion
The @dbbhk/ui-components package contains a critical vulnerability that allows for the harvesting of sensitive credentials. Users are advised to uninstall the package immediately and monitor for updates. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for @dbbhk/ui-components →
FAQ
The vulnerability involves malicious code that executes during installation, harvesting sensitive credentials and sending them to an external server.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Check your application against the vulnerability using the Vulert playground at Vulert Scanner.
Immediately uninstall the package using npm uninstall @dbbhk/ui-components and check for any compromised credentials in your environment.
As of now, there is no patched version available. It is recommended to monitor the package repository for updates.
The malicious code runs automatically during the installation process, querying AWS metadata and environment variables to collect sensitive information.