CVE-2021-37694: Code Injection Vulnerability in java-spring-cloud-stream-template

Summary

25/08/2021
Yes i
High
8.7

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for @asyncapi/java-spring-cloud-stream-template.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback