Critical Malicious Code Vulnerability in @asyncapi/avro-schema-parser Package
Summary
MAL-2025-190635: Malicious code in @asyncapi/avro-schema-parser (npm). Affects @asyncapi/avro-schema-parser versions 3.0.25 – 3.0.26. 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/avro-schema-parser is an npm package designed to facilitate the parsing of Avro schemas in asynchronous API applications. It provides developers with tools to manage and validate Avro schemas efficiently. However, this package has been compromised, leading to significant security risks for any application utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of malicious code embedded within the @asyncapi/avro-schema-parser package. This code can fully compromise any computer running the package, allowing unauthorized access to sensitive information such as secrets and keys. The malicious nature of the code is classified under CWE-506, indicating that it contains code that appears to be malicious in nature. Users are advised to treat any system with this package installed as compromised.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @asyncapi/avro-schema-parser
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 other than removing the package entirely. It is essential to monitor your application for any signs of compromise after removal.
Conclusion
The @asyncapi/avro-schema-parser package has been identified as containing malicious code that compromises the security of any system using it. Immediate action is required to remove the package and secure any sensitive information. Regular monitoring for vulnerabilities is essential to maintain application security.
See every vulnerability recorded for @asyncapi/avro-schema-parser →
FAQ
You should immediately uninstall the package and rotate any sensitive information stored on the affected system.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.
No, there are currently no patched versions available for this package. The only solution is to remove it.
Failure to address this vulnerability may lead to unauthorized access to sensitive data and complete compromise of the affected system.
It is advisable to avoid using this package until a secure version is released and confirmed to be free of malicious code.