GHSA-q6gh-6v2r-hjv3: Micronaut DefaultHttpClient Follows Redirects, Forwarding Authorization, Vulnerability

MODERATE
CVSS 6.8
Published
Advisory Summary

GHSA-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.

GHSA-q6gh-6v2r-hjv3 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-q6gh-6v2r-hjv3
Severity MODERATE
CVSS v3.1 Base Score 6.8
CWE Classification General Security Weakness
Affected Product Micronaut
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

io.micronaut:micronaut-http-client fixed: 3.10.6
<dependency>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-http-client</artifactId>
    <version>3.10.6</version>
</dependency>
io.micronaut:micronaut-http-client fixed: 4.10.24
<dependency>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-http-client</artifactId>
    <version>4.10.24</version>
</dependency>
io.micronaut:micronaut-http-client fixed: 5.0.1
<dependency>
    <groupId>io.micronaut</groupId>
    <artifactId>micronaut-http-client</artifactId>
    <version>5.0.1</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### Impact > 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. > Additionally, no maximum redirect count exists, enabling infinite loop DoS. > Affected: DefaultHttpClient.java lines 231-245, 1591, 2071 > Suggested fix: Strip sensitive headers on cross-domain redirects ### Patches It has been patched for versions: For Micronaut 5, versions equal or greater than 5.0.1 >= For Micronaut 4, versions equal or greater than 4.10.24 >= For Micronaut 3, versions equal or greater than 3.10.6 >= ### Workarounds No ### References Micronaut 5 Patch: https://github.com/micronaut-projects/micronaut-core/commit/9770328999f490bdfbb9e25addd45bf73d4a173a Micronaut 4 Patch: https://github.com/micronaut-projects/micronaut-core/commit/70cab4b44fbf985faba2846091f2356b5bd70719 Micronaut 3 Patch: https://github.com/micronaut-projects/micronaut-core/commit/64e539736b8168f201d868b02ace50fe14f57418

GHSA-q6gh-6v2r-hjv3 Affected Micronaut Versions

3 component(s)
Fixed Versions:
3.10.64.10.245.0.1
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?
GHSA-q6gh-6v2r-hjv3 is a security vulnerability in Micronaut involving DefaultHttpClient follows redirects, forwarding Authorization, Cookie, and Proxy-Authorization headers under General Security Weakness.
Which Micronaut versions are affected?
Affected versions include releases prior to 3.10.6, 4.10.24, 5.0.1 across affected packages: io.micronaut:micronaut-http-client.
What version fixes GHSA-q6gh-6v2r-hjv3?
Upgrading to 3.10.6, 4.10.24, 5.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is micronaut-http-client affected?
Yes, io.micronaut:micronaut-http-client is affected in releases prior to 3.10.6, 4.10.24, 5.0.1. Upgrade your dependency to 3.10.6, 4.10.24, 5.0.1 or later.
What is the CVSS score of GHSA-q6gh-6v2r-hjv3?
GHSA-q6gh-6v2r-hjv3 has a CVSS v3.1 base score of 6.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with GHSA-q6gh-6v2r-hjv3?
GHSA-q6gh-6v2r-hjv3 is classified under General Security Weakness.
How can I check Maven dependencies for GHSA-q6gh-6v2r-hjv3?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=io.micronaut'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}