AsyncHttpClient leaks authorization credentials to untrusted domains on cross-origin redirects
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 5 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-200.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| AsyncHttpClient | async-http-client | 3.0.0.Beta1 to before 3.0.9; before 2.14.5 | 3.0.9, 2.14.5 | Patch available | CNA |
| — | org.asynchttpclient:async-http-client (Maven) | 3.0.0.Beta1 to before 3.0.9 | 3.0.9 | Patch available | GHSA-cmxv-58fp-fm3g |
| — | org.asynchttpclient:async-http-client (Maven) | 2.0.0 to before 2.14.5 | 2.14.5 | Patch available | GHSA-cmxv-58fp-fm3g |
- async-http-client VendorAsyncHttpClient Affected 3.0.0.Beta1 to before 3.0.9; before 2.14.5 Fixed in 3.0.9, 2.14.5 Patch available CNA
- org.asynchttpclient:async-http-client (Maven) Vendor— Affected 3.0.0.Beta1 to before 3.0.9 Fixed in 3.0.9 Patch available GHSA-cmxv-58fp-fm3g
- org.asynchttpclient:async-http-client (Maven) Vendor— Affected 2.0.0 to before 2.14.5 Fixed in 2.14.5 Patch available GHSA-cmxv-58fp-fm3g
Remediation
- Fix · CNA async-http-client (AsyncHttpClient) Fixed in 3.0.9, 2.14.5
- Fix · GHSA-cmxv-58fp-fm3g org.asynchttpclient:async-http-client (Maven) Fixed in 3.0.9 Advisory →
- Fix · GHSA-cmxv-58fp-fm3g org.asynchttpclient:async-http-client (Maven) Fixed in 2.14.5 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Fuse 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet: Fix deferred |
| Red Hat build of Apache Camel for Spring Boot 4 | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40490
- 2026-10-03 Alias added: GHSA-cmxv-58fp-fm3g
References
Other 6
- https://github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-cmxv-58fp-fm3g
- https://github.com/AsyncHttpClient/async-http-client/commit/6b2fbb7f8
- https://github.com/AsyncHttpClient/async-http-client/commit/ae557ad35246721c09dafb2976609cd0004e78ae
- https://github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-2.14.5
- https://github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-3.0.9
- https://github.com/AsyncHttpClient/async-http-client
More AsyncHttpClient vulnerabilities
- TI-2024-36149 AsyncHttpClient (AHC) library's `CookieStore` replaces explicitly defined `Cookie`s CVSS 4.0CRITICAL 9.2
- TI-2026-69321 Cross-host replay in AsyncHttpClient leaks credentials to new host CVSS 4.0CRITICAL 9.4
- TI-2026-69315 AsyncHttpClient sends passwords in cleartext after Digest downgrade CVSS 4.0HIGH 8.7
- TI-2026-58825 AsyncHttpClient: Unbounded HTTP/1.1 response decompression enables a decompression-bomb denial of service CVSS 3.1HIGH 7.5
- TI-2026-69311 Unbounded WebSocket decompression in AsyncHttpClient enables DoS CVSS 3.1HIGH 7.5
- TI-2026-58823 AsyncHttpClient: SOCKS proxy credentials sent to the origin server over plaintext HTTP CVSS 3.1HIGH 7.5
Sources
- CVE-2026-40490 · CVE Program
- CVE-2026-40490 · NVD
- FIRST EPSS
- GHSA-cmxv-58fp-fm3g · GitHub Advisory Database · CC BY 4.0
- CVE-2026-40490 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences