Malicious Code Injection in @uh-platform/webcard - npm Package Vulnerability
Summary
MAL-2026-16362: Malicious code in @uh-platform/webcard (npm). Affects @uh-platform/webcard 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 @uh-platform/webcard package is a JavaScript library used within the npm ecosystem, designed to facilitate web card functionalities. It is part of a larger organizational scope and has dependencies that may lead to potential conflicts or vulnerabilities. The package version 99.0.0 has been identified to contain a preinstall hook that executes malicious code, posing a significant security risk to users.
Vulnerability Detail
The vulnerability originates from a preinstall hook in the @uh-platform/webcard@99.0.0 package that runs an index.js file. This file executes a shell command that sends a request to a Burp Collaborator subdomain, allowing an attacker to gain control over the installer's host system. This malicious behavior occurs unconditionally during the npm install process, confirming code execution and enabling DNS/HTTP callbacks to an attacker-controlled server. The vulnerability is classified under CWE-506, indicating the presence of embedded malicious code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @uh-platform/webcard
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 installing the vulnerable version by using npm install with a specific version that is known to be safe, or by removing the package entirely if it is not critical to your application. Example command: npm uninstall @uh-platform/webcard.
Conclusion
The @uh-platform/webcard package has a critical vulnerability due to malicious code embedded in its preinstall hook. Users are advised to update to a patched version or implement workarounds to mitigate risks. Regular monitoring of dependencies using tools like Vulert can help maintain security in your applications.
See every vulnerability recorded for @uh-platform/webcard →
FAQ
The vulnerability allows attackers to execute arbitrary code on the installer's machine, potentially leading to data breaches or system compromise.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application against this vulnerability using the Vulert playground at Vulert Scanner.
Yes, it is recommended to update the @uh-platform/webcard package to the latest version to mitigate the risk.
Consider removing the package or using a previous version that does not contain the vulnerability as a temporary measure.
The preinstall hook is a script that runs automatically before the package installation process begins, which in this case executes malicious code.