CVE-2021-37694: Code Injection Vulnerability in java-spring-cloud-stream-template
Summary
CVE-2021-37694: Code injection issue for java-spring-cloud-stream-template. Affects @asyncapi/java-spring-cloud-stream-template versions < 0.7.0. Fixed in 0.7.0. 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 java-spring-cloud-stream-template is an npm package that provides a template for building Java applications using the Spring Cloud Stream framework. It allows developers to create event-driven microservices that can communicate with each other through message brokers. The package is widely used in Java development projects.
Vulnerability Detail
This vulnerability allows an attacker to inject arbitrary code into the application by manipulating the AsyncAPI document used by the package. By crafting a malicious AsyncAPI document with a specially crafted operationId value, an attacker can inject arbitrary code into the generated Java code. This code injection can lead to various security issues, including remote code execution and privilege escalation. The vulnerability affects versions of the java-spring-cloud-stream-template package up to and including 0.6.9.
How To Fix
Latest published version: 0.13.4 as of 23 Oct 2026
npm install @asyncapi/java-spring-cloud-stream-template@0.13.4
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.7.0
This is the first release that contains the fix.
npm install @asyncapi/java-spring-cloud-stream-template@0.7.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no known workaround for this vulnerability. It is recommended to update the package to the latest version as soon as possible.
Conclusion
The java-spring-cloud-stream-template package is vulnerable to a code injection vulnerability that allows an attacker to inject arbitrary code into the application. To mitigate this vulnerability, it is recommended to update the package to version 0.7.0 or later. For more information and assistance, please contact DevNack.com.
See every vulnerability recorded for @asyncapi/java-spring-cloud-stream-template →
FAQ
This vulnerability allows an attacker to inject arbitrary code into the application, which can lead to various security issues, including remote code execution and privilege escalation.
You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your package-lock.json file to the playground and it will analyze it for vulnerabilities.
There are no known public exploits for this vulnerability at the moment. However, it is important to update the package to the latest version to prevent any potential attacks.
Yes, the CVSS score for this vulnerability is 8.7, indicating a high severity.
For more information about this vulnerability, you can contact info@devnack.com for further support on vulnerability remediation.
References
Related vulnerabilities
Recent vulnerabilities recorded for @asyncapi/java-spring-cloud-stream-template.