Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-40490

MEDIUM 6.8EPSS 36%

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

Also known as GHSA-cmxv-58fp-fm3g

Mitigation

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

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

Vulnerability facts

Affected
org.asynchttpclient:async-http-client >= 3.0.0.Beta1, < 3.0.9
Fixed in
3.0.9, 2.14.5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.50% chance of exploitation in 30 days (percentile 36, 2026-11-26)
CWE
CWE-200
Published
Modified

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

Package / productAffectedFixedSource
Maven org.asynchttpclient:async-http-client>= 3.0.0.Beta1, < 3.0.93.0.9, 2.14.5osv
AsyncHttpClient async-http-client>= 3.0.0.Beta1, < 3.0.9; < 2.14.5—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors