CVE-2026-40490
Last modified
CVE-2026-40490 is a medium-severity vulnerability rated 6.8/10 on the CVSS scale. 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. EPSS estimates a 0.33% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-40490?
How severe is CVE-2026-40490?
How do I fix CVE-2026-40490?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40485ChurchCRM is an open-source church management system. In ver…5.3
- CVE-2026-40486Kimai is an open-source time tracking application. In versio…4.3
- CVE-2026-40487Postiz is an AI social media scheduling tool. Prior to versi…9
- CVE-2026-40488Magento Long Term Support (LTS) is an unofficial, community-…8.8
- CVE-2026-40489editorconfig-core-c is an EditorConfig core library for use…8.6
- CVE-2026-4049Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-40491gdown is a Google Drive public file/folder downloader. Versi…7.8
- CVE-2026-40492SAIL is a cross-platform library for loading and saving imag…9.8
- CVE-2026-40493SAIL is a cross-platform library for loading and saving imag…9.8
- CVE-2026-40494SAIL is a cross-platform library for loading and saving imag…9.8
- CVE-2026-40495FOSSBilling is a free, open-source billing and client manage…6.9
- CVE-2026-40496FreeScout is a free self-hosted help desk and shared mailbox…9.1
Are you affected by CVE-2026-40490?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
