# CVE-2026-40490: AsyncHttpClient leaks authorization credentials to untrusted domains on cross-origin redirects

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.8
- **CVSS:** 6.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.50% (percentile 36, 2026-11-26)
- **CWE:** CWE-200
- **Aliases:** GHSA-cmxv-58fp-fm3g
- **Published:** 2026-04-14T01:07:42.000Z
- **Modified:** 2026-09-10T03:50:43.967Z

## Who should check

- Projects that depend on Maven package org.asynchttpclient:async-http-client (\>= 3.0.0.Beta1, \< 3.0.9)
- Anyone running AsyncHttpClient async-http-client \>= 3.0.0.Beta1, \< 3.0.9; \< 2.14.5

## Description

The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. When redirect following is enabled (followRedirect(true)), versions of AsyncHttpClient prior to 3.0.9 and 2.14.5 forward Authorization and Proxy-Authorization headers along with Realm credentials to arbitrary redirect targets regardless of domain, scheme, or port changes. This leaks credentials on cross-domain redirects and HTTPS-to-HTTP downgrades. Additionally, even when stripAuthorizationOnRedirect is set to true, the Realm object containing plaintext credentials is still propagated to the redirect request, causing credential re-generation for Basic and Digest authentication schemes via NettyRequestFactory. An attacker who controls a redirect target (via open redirect, DNS rebinding, or MITM on HTTP) can capture Bearer tokens, Basic auth credentials, or any other Authorization header value. The fix in versions 3.0.9 and 2.14.5 automatically strips Authorization and Proxy-Authorization headers and clears Realm credentials whenever a redirect crosses origin boundaries (different scheme, host, or port) or downgrades from HTTPS to HTTP. For users unable to upgrade, set \`(stripAuthorizationOnRedirect(true))\` in the client config and avoid using Realm-based authentication with redirect following enabled. Note that \`(stripAuthorizationOnRedirect(true))\` alone is insufficient on versions prior to 3.0.9 and 2.14.5 because the Realm bypass still re-generates credentials. Alternatively, disable redirect following (\`followRedirect(false)\`) and handle redirects manually with origin validation.

## Affected and fixed versions

- Maven `org.asynchttpclient:async-http-client`: affected \>= 3.0.0.Beta1, \< 3.0.9; fixed 3.0.9, 2.14.5 (osv)
- AsyncHttpClient async-http-client: \>= 3.0.0.Beta1, \< 3.0.9; \< 2.14.5 (cvelist)

## Mitigation

- Upgrade org.asynchttpclient:async-http-client to one of 3.0.9, 2.14.5 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-40490. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-40490.md
Affected: org.asynchttpclient:async-http-client >= 3.0.0.Beta1, < 3.0.9
Fixed in: 3.0.9, 2.14.5

Steps:
1. Search this machine and project for org.asynchttpclient:async-http-client (Maven), AsyncHttpClient async-http-client: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-40490 being exploited?

There is no confirmed exploitation: CVE-2026-40490 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.50% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-40490?

Medium: CVSS 6.8 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-40490?

org.asynchttpclient:async-http-client \>= 3.0.0.Beta1, \< 3.0.9.

### Is there a fix for CVE-2026-40490?

Yes. Fixed in 3.0.9, 2.14.5. Upgrade org.asynchttpclient:async-http-client to one of 3.0.9, 2.14.5 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-40490?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-cmxv-58fp-fm3g>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-40490>
- patch: <https://github.com/AsyncHttpClient/async-http-client/commit/6b2fbb7f8>
- patch: <https://github.com/AsyncHttpClient/async-http-client/commit/ae557ad35246721c09dafb2976609cd0004e78ae>
- other: <https://github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-2.14.5>
- other: <https://github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-3.0.9>
- other: <https://github.com/AsyncHttpClient/async-http-client>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-40490>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-cmxv-58fp-fm3g> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-40490> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-40490>
