Critical Malicious Code Vulnerability in @asyncapi/markdown-template Package
Summary
MAL-2025-190659: Malicious code in @asyncapi/markdown-template (npm). Affects @asyncapi/markdown-template versions 1.6.8 – 1.6.9. 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/markdown-template package is an npm library designed to facilitate the generation of markdown documentation for AsyncAPI specifications. It is widely used by developers to streamline the documentation process for APIs. However, this package has been compromised, leading to significant security concerns for users who have it installed.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the @asyncapi/markdown-template 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 nature of the code has been confirmed by security researchers, and it poses a severe risk to users who may unknowingly expose their systems to external threats.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @asyncapi/markdown-template
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
There are no effective workarounds for this vulnerability other than removing the package entirely. Users should also monitor their systems for any unusual activity after the package has been uninstalled.
Conclusion
The @asyncapi/markdown-template package has been identified as containing malicious code that poses a significant security threat. Users are advised to uninstall the package immediately and take necessary precautions to secure their systems. Continuous monitoring for vulnerabilities is essential to maintain the integrity of your applications.
See every vulnerability recorded for @asyncapi/markdown-template →
FAQ
You should uninstall the package immediately using the command 'npm uninstall @asyncapi/markdown-template' and rotate any exposed secrets or keys.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
The risks include unauthorized access to sensitive information, potential data breaches, and complete compromise of your system.
Currently, there is no patched version available. The only recommendation is to uninstall the package.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities.