Critical Malicious Code Vulnerability in asyncapi-preview Package
Summary
MAL-2025-190831: Malicious code in asyncapi-preview (npm). Affects asyncapi-preview versions 1.0.1 – 1.0.2. 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 asyncapi-preview package is an npm library designed for previewing AsyncAPI documents. It allows developers to visualize and interact with API specifications in a user-friendly manner. However, this package has been compromised, leading to significant security concerns for any system utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the asyncapi-preview package. This code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. The malicious code was identified through the GHSA-malware source, indicating a severe risk to users and their systems.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall asyncapi-preview
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
Currently, there are no effective workarounds to mitigate the risks associated with the malicious code in asyncapi-preview. The only recommended action is to uninstall the package and secure your system.
Conclusion
The asyncapi-preview package has been compromised with malicious code, posing a significant threat to users. Immediate action is required to remove the package and secure any sensitive information. Regular monitoring and updates are essential to maintain security in open-source software.
See every vulnerability recorded for asyncapi-preview →
FAQ
You should uninstall the asyncapi-preview package immediately and rotate any secrets or keys stored on your system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
As of now, there is no patched version available. It is recommended to remove the package entirely.
Failing to address this vulnerability may lead to unauthorized access to sensitive information and complete compromise of your system.
Vulert monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file, providing real-time updates.