Critical Malicious Code Vulnerability in @asyncapi/java-spring-cloud-stream-template Package
Summary
MAL-2025-190715: Malicious code in @asyncapi/java-spring-cloud-stream-template (npm). Affects @asyncapi/java-spring-cloud-stream-template versions 0.13.5 – 0.13.6. 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/java-spring-cloud-stream-template package is an npm library designed to facilitate the development of applications using AsyncAPI specifications with Spring Cloud Stream. It provides developers with tools to streamline the integration of messaging systems. However, this package has been identified as containing malicious code, posing significant security risks to any system utilizing it.
Vulnerability Detail
The vulnerability stems from the presence of embedded malicious code within the @asyncapi/java-spring-cloud-stream-template package. This code can compromise any computer that has the package installed or running, potentially allowing unauthorized access to sensitive information, including secrets and keys. The malicious nature of this code has been confirmed by the source, which categorizes it under CWE-506, indicating that the product contains code that appears to be malicious in nature.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall @asyncapi/java-spring-cloud-stream-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
As a workaround, if immediate removal of the package is not feasible, consider isolating the application using this package in a secure environment to minimize exposure. However, this is not a permanent solution and should not replace the removal of the package.
Conclusion
The @asyncapi/java-spring-cloud-stream-template package has been identified as containing malicious code that poses a significant security risk. Immediate action is required to remove the package and secure any compromised systems. Users should stay informed about updates and potential patches while utilizing tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for @asyncapi/java-spring-cloud-stream-template →
FAQ
You should remove the package immediately and rotate any secrets or keys stored on the affected machine.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
Currently, there is no specific patch version available, but you should monitor for updates and upgrade to the latest version once released.
Failing to address this vulnerability could lead to unauthorized access to sensitive data and complete compromise of your system.
It is advisable to avoid using this package until the maintainers have addressed the security issues and confirmed that it is safe.
References
Related vulnerabilities
Recent vulnerabilities recorded for @asyncapi/java-spring-cloud-stream-template.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.