Critical Malicious Code Vulnerability in @asyncapi/generator-helpers Package
Summary
MAL-2025-190657: Malicious code in @asyncapi/generator-helpers (npm). Affects @asyncapi/generator-helpers versions 0.2.1 – 0.2.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/generator-helpers package is a utility library designed to assist developers in generating AsyncAPI specifications and documentation. It provides various helper functions and tools to streamline the development process. However, this package has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability stems from the presence of malicious code within the @asyncapi/generator-helpers package, specifically in versions 0.2.1 and 0.2.2. This malicious code can fully compromise any computer that has the package installed, allowing unauthorized access to sensitive information such as secrets and keys. Users are advised to treat any system running this package as compromised and take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @asyncapi/generator-helpers
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 and ensuring that all secrets and keys are rotated from a secure environment.
Conclusion
The discovery of malicious code within the @asyncapi/generator-helpers package poses a serious threat to users. Immediate action is required to mitigate risks, including uninstalling the package and rotating sensitive information. Continuous monitoring for vulnerabilities is recommended to maintain security.
See every vulnerability recorded for @asyncapi/generator-helpers →
FAQ
Immediately uninstall the @asyncapi/generator-helpers package and rotate any secrets or keys stored on the affected system.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Failing to address this vulnerability can lead to unauthorized access to sensitive data, potential data breaches, and complete system compromise.
Yes, Vulert provides real-time monitoring and alerts for open-source vulnerabilities using just your package-lock.json file.
While removing the package is essential, there is no guarantee that all malicious software has been removed. It is advisable to perform a thorough security audit of the affected system.