Skip to content

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

MediumCVSS 6.8 EPSS 0.42%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
org.asynchttpclient/async-http-client(Maven) >= 3.0.0.Beta1, < 3.0.9 3.0.9
org.asynchttpclient/async-http-client(Maven) = 3.0.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.0.Beta1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.0.Beta2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.0.Beta3 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.3 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.4 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.5 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.6 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.7 No fix listed
org.asynchttpclient/async-http-client(Maven) = 3.0.8 No fix listed
org.asynchttpclient/async-http-client(Maven) >= 2.0.0, < 2.14.5 2.14.5
org.asynchttpclient/async-http-client(Maven) = 2.0.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.10 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.11 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.12 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.13 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.14 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.15 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.16 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.17 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.18 No fix listed
Show 114 more
ProductAffected versionsFixed in
org.asynchttpclient/async-http-client(Maven) = 2.0.19 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.20 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.21 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.22 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.23 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.24 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.25 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.26 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.27 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.28 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.29 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.3 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.30 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.31 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.32 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.33 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.34 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.35 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.36 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.37 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.38 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.39 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.4 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.40 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.5 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.6 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.7 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.8 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.0.9 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-RC1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-RC2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-RC3 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-RC4 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha10 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha11 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha12 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha13 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha14 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha15 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha16 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha17 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha18 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha19 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha20 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha21 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha22 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha23 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha24 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha25 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha26 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha3 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha4 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha5 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha6 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha7 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha8 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.0-alpha9 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.1.2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.10.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.10.1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.10.2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.10.3 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.10.4 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.10.5 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.11.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.12.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.12.1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.12.2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.12.3 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.12.4 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.2.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.2.1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.3.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.3 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.4 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.5 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.6 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.7 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.8 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.4.9 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.5.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.5.1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.5.2 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.5.3 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.5.4 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.6.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.7.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.8.0 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.8.1 No fix listed
org.asynchttpclient/async-http-client(Maven) = 2.9.0 No fix listed
AsyncHttpClient async-http-client = >= 3.0.0.Beta1, < 3.0.9 No fix listed
AsyncHttpClient async-http-client = < 2.14.5 No fix listed
debian/async-http-client(Debian:12) All versions No fix listed
debian/async-http-client(Debian:12) = 2.12.3-1 No fix listed
debian/async-http-client(Debian:12) = 2.12.3-1+deb12u1 No fix listed
redhat/org.asynchttpclient/async-http-client(Red Hat:camel_spring_boot:4) All versions No fix listed
redhat/org.asynchttpclient/async-http-client(Red Hat:jboss_fuse:7) All versions No fix listed
redhat/org.asynchttpclient/async-http-client(Red Hat:jboss_enterprise_application_platform:7) All versions No fix listed
redhat/com.ning/async-http-client(Red Hat:jboss_enterprise_application_platform:8) All versions No fix listed
redhat/org.asynchttpclient/async-http-client(Red Hat:jboss_enterprise_application_platform:8) All versions No fix listed
redhat/com.ning/async-http-client(Red Hat:jbosseapxp) All versions No fix listed
redhat/org.asynchttpclient/async-http-client(Red Hat:jbosseapxp) All versions No fix listed
ubuntu/async-http-client(Ubuntu:22.04) All versions No fix listed
ubuntu/async-http-client(Ubuntu:24.04) All versions No fix listed
ubuntu/async-http-client(Ubuntu:26.04) All versions No fix listed
ubuntu/async-http-client(Ubuntu:26.10) All versions No fix listed

References