Vulnerabilities in pkg:maven/io.micronaut/micronaut-http-client
PACKAGEGHSA-q6gh-6v2r-hjv3 is a MODERATE (CVSS 6.8) defaulthttpclient follows redirects, forwarding authorization, vulnerability (General Security Weakness) affecting Micronaut libraries in the Maven ecosystem. The issue involves defaulthttpclient follows redirects, forwarding authorization, cookie, and proxy-authorization headers. Remediation is available by upgrading affected packages to version 3.10.6, 4.10.24, 5.0.1.
pkg:maven/io.micronaut/micronaut-http-client
Vulnerability advisories affecting package pkg:maven/io.micronaut/micronaut-http-client. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-q6gh-6v2r-hjv3 | - | MODERATE | Micronaut: DefaultHttpClient follows redirects, forwarding Authorization, Cookie, and Proxy-Authorization headers |
| GHSA-387m-935m-c4vw | - | HIGH | Micronaut doesn't set a maximum redirect count for its HTTP Client, enabling infinite loop DoS |
| GHSA-694p-xrhg-x3wm | CVE-2020-7611 | CRITICAL | Micronaut's HTTP client is vulnerable to HTTP Request Header Injection |
GHSA-q6gh-6v2r-hjv3 at a Glance
Security Impact
CVSS: 6.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N).
How to Fix GHSA-q6gh-6v2r-hjv3
To remediate this vulnerability, upgrade all affected Micronaut dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-client</artifactId>
<version>3.10.6</version>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-client</artifactId>
<version>4.10.24</version>
</dependency>
<dependency>
<groupId>io.micronaut</groupId>
<artifactId>micronaut-http-client</artifactId>
<version>5.0.1</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=io.micronaut
How to Check if You Are Affected
To determine whether your Java application is affected by GHSA-q6gh-6v2r-hjv3, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=io.micronaut
Analyze the terminal output to locate any version of Micronaut in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.10.6), your application is affected.
Note: The mvn dependency:tree -Dincludes=io.micronaut command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Micronaut, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-q6gh-6v2r-hjv3 Affected Micronaut Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
io.micronaut:micronaut-http-client
|
Maven |
≥ 1.2.8
< 3.10.6
|
3.10.6
|
|
io.micronaut:micronaut-http-client
|
Maven |
≥ 4.0.0-M1
< 4.10.24
|
4.10.24
|
|
io.micronaut:micronaut-http-client
|
Maven |
≥ 5.0.0-M1
< 5.0.1
|
5.0.1
|
References
Frequently Asked Questions
What is GHSA-q6gh-6v2r-hjv3?
Which Micronaut versions are affected?
What version fixes GHSA-q6gh-6v2r-hjv3?
Is micronaut-http-client affected?
What is the CVSS score of GHSA-q6gh-6v2r-hjv3?
What CWE is associated with GHSA-q6gh-6v2r-hjv3?
How can I check Maven dependencies for GHSA-q6gh-6v2r-hjv3?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q6gh-6v2r-hjv3",
"modified" : "2026-07-09T13:36:56Z",
"published" : "2026-07-09T13:36:56Z",
"aliases" : [ ],
"summary" : "Micronaut: DefaultHttpClient follows redirects, forwarding Authorization, Cookie, and Proxy-Authorization headers",
"details" : "### Impact\n\n> DefaultHttpClient follows redirects and forwards Authorization, Cookie, and Proxy-Authorization headers to redirect targets across domain boundaries. The blocklist only filters Host/Connection/TE/CT/CL.\n> Additionally, no maximum redirect count exists, enabling infinite loop DoS.\n> Affected: DefaultHttpClient.java lines 231-245, 1591, 2071\n\n> Suggested fix: Strip sensitive headers on cross-domain redirects\n\n### Patches\nIt has been patched for versions: \n\nFor Micronaut 5, versions equal or greater than 5.0.1 >=\nFor Micronaut 4, versions equal or greater than 4.10.24 >=\nFor Micronaut 3, versions equal or greater than 3.10.6 >=\n\n### Workarounds\nNo\n\n### References\nMicronaut 5 Patch: https://github.com/micronaut-projects/micronaut-core/commit/9770328999f490bdfbb9e25addd45bf73d4a173a\nMicronaut 4 Patch: https://github.com/micronaut-projects/micronaut-core/commit/70cab4b44fbf985faba2846091f2356b5bd70719\nMicronaut 3 Patch: https://github.com/micronaut-projects/micronaut-core/commit/64e539736b8168f201d868b02ace50fe14f57418",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "io.micronaut:micronaut-http-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.8"
}, {
"fixed" : "3.10.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.micronaut:micronaut-http-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0-M1"
}, {
"fixed" : "4.10.24"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "io.micronaut:micronaut-http-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "5.0.0-M1"
}, {
"fixed" : "5.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/micronaut-projects/micronaut-core/security/advisories/GHSA-q6gh-6v2r-hjv3"
}, {
"type" : "WEB",
"url" : "https://github.com/micronaut-projects/micronaut-core/commit/64e539736b8168f201d868b02ace50fe14f57418"
}, {
"type" : "WEB",
"url" : "https://github.com/micronaut-projects/micronaut-core/commit/70cab4b44fbf985faba2846091f2356b5bd70719"
}, {
"type" : "WEB",
"url" : "https://github.com/micronaut-projects/micronaut-core/commit/9770328999f490bdfbb9e25addd45bf73d4a173a"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/micronaut-projects/micronaut-core"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-09T13:36:56Z",
"nvd_published_at" : null
}
}