ADVISORIES

Vulnerability

CVE-2026-40490

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.

23 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • CGA-29r5-g7wf-7pw8
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-29v5-v8p4-j8j6
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-2hq3-35fm-pprq
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-48ww-mccp-q4w9
    CVE-2026-40490 ChainguardWolfi Updated 5 November 2026
  • CGA-5483-h5m3-6jmh
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-7xhr-hc52-6p33
    CVE-2026-40490 ChainguardWolfi Updated 5 November 2026
  • CGA-8994-q849-c84f
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-8cqv-7cv4-vxjp
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-grgp-5gcc-w9qh
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-h546-6pvm-v6vv
    CVE-2026-40490 ChainguardWolfi Updated 5 November 2026
  • CGA-mfjq-4j43-g74h
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-mx66-8mjq-p7hc
    CVE-2026-40490 ChainguardWolfi Updated 5 November 2026
  • CGA-mxr4-m486-f49w
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-p2pm-2qqf-5f3x
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-qc2g-c5r2-55fr
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-rq7r-9r7x-g32j
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-v36f-3v9j-xrhv
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-wpcm-r8hg-x6h4
    CVE-2026-40490 Chainguard Updated 5 November 2026
  • CGA-wvww-mq34-h744
    CVE-2026-40490 ChainguardWolfi Updated 5 November 2026
  • CGA-x3w3-24mr-gx52
    CVE-2026-40490 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2026-40490

    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…

    CVE-2026-40490 Debian Updated 1 October 2026
  • GHSA-cmxv-58fp-fm3g

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

    Moderate CVE-2026-40490 Maven Updated 10 September 2026
  • UBUNTU-CVE-2026-40490

    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…

    CVE-2026-40490 Ubuntu Updated 17 October 2026

References