{"id":"CVE-2026-85717","aliases":["CVE-2026-85717","GHSA-f8m2-889x-vw4x"],"related":[],"kind":"vulnerability","state":"published","title":"AsyncHttpClient: Client-wide realm credentials re-sent to a cross-origin redirect target","summary":"The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. From 2.14.5 to 2.16.0 and from 3.0.9 to 3.0.11, a client configured with a client-wide Realm and redirect following can disclose credentials after a cross-origin redirect because the Interceptors authentication path falls back to the client configuration after redirect handling clears the per-exchange realm. If the attacker-controlled target returns 401, the client can send Basic or Digest credentials or a Negotiate or NTLM token to that origin. Per-request realms are stripped correctly, and this issue is a residual bypass of the earlier cross-origin credential-stripping fixes. This issue is fixed in versions 2.16.1 and 3.0.12.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. From 2.14.5 to 2.16.0 and from 3.0.9 to 3.0.11, a client configured with a client-wide Realm and redirect following can disclose credentials after a cross-origin redirect because the Interceptors authentication path falls back to the client configuration after redirect handling clears the per-exchange realm. If the attacker-controlled target returns 401, the client can send Basic or Digest credentials or a Negotiate or NTLM token to that origin. Per-request realms are stripped correctly, and this issue is a residual bypass of the earlier cross-origin credential-stripping fixes. This issue is fixed in versions 2.16.1 and 3.0.12.","source":"cvelist"},{"lang":"en","text":"### Impact\nA client configured with a client-wide realm (a Realm set on the config builder rather than on an individual request) and following redirects could re-send those credentials to a redirect target on a different origin. The redirect code strips the per-exchange realm, but when the target answered 401 the credentials were re-derived from the client config, handing Basic or Digest credentials, or a Negotiate or NTLM token, to an attacker controlled origin. This is a residual of the earlier cross-origin credential leak advisories, whose strip this bypassed.\n\n### Affected versions\n* 3.x: 3.0.9 through 3.0.11\n* 2.x: 2.14.5 through 2.16.0\n\nReleases below those floors are covered by the earlier advisories GHSA-cmxv-58fp-fm3g and GHSA-fmxf-pm6p-7xgm: the cross-origin strip that this issue bypasses did not exist yet, so the leak there is the original one rather than this residual.\n\n### Patches\nFixed in 3.0.12 on the 3.x line and in 2.16.1 on the 2.x line. The realm is taken from the per-exchange state that the redirect already cleared, rather than being re-derived from the client configuration.\n\n### Workarounds\nSet the Realm on the individual request instead of on the client configuration. A per-request realm is stripped correctly on a cross-origin redirect while still authenticating same-origin, so this is a complete workaround with no loss of function. Turning off follow-redirects also avoids it. Note that setStripAuthorizationOnRedirect(true) is not a workaround: it forces the strip, but the configuration fallback re-derived the realm regardless.\n\n### Details\nThe interceptor read the realm as the request's realm or, failing that, the client configuration's realm, which re-attached the config realm after the redirect strip had cleared it. It now reads the realm held on the response future. See also GHSA-cmxv-58fp-fm3g and GHSA-fmxf-pm6p-7xgm.","format":"markdown","source":"ghsa"}],"published":"2026-09-17T15:53:39.875Z","modified":"2026-09-30T17:31:44.573Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-522"],"affected":[{"ranges":[{"version":">= 2.14.5, < 2.16.1","status":"affected"},{"version":">= 3.0.9, < 3.0.12","status":"affected"}],"vendor":"AsyncHttpClient","product":"async-http-client","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.9","status":"affected","fixed":"3.0.12"}],"ecosystem":"Maven","package":"org.asynchttpclient:async-http-client","purl":"pkg:maven/org.asynchttpclient/async-http-client","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.14.5","status":"affected","fixed":"2.16.1"}],"ecosystem":"Maven","package":"org.asynchttpclient:async-http-client","purl":"pkg:maven/org.asynchttpclient/async-http-client","source":"ghsa"}],"references":[{"url":"https://github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-f8m2-889x-vw4x","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AsyncHttpClient/async-http-client/pull/2224","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AsyncHttpClient/async-http-client/commit/43db7bba81430cbd61ec2dc2c7be464e0ff6a0ff","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AsyncHttpClient/async-http-client/commit/b66757bec34def2e9867bb2b77bd848b1112abb4","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/AsyncHttpClient/async-http-client","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-23T18:32:28.993Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-85717","url":"https://www.cve.org/CVERecord?id=CVE-2026-85717","licence":"CVE Terms of Use","modified":"2026-09-23T18:46:54.135Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f8m2-889x-vw4x","url":"https://github.com/advisories/GHSA-f8m2-889x-vw4x","licence":"CC-BY-4.0","modified":"2026-09-17T17:30:07.592Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-85717","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85717","licence":"Public domain","modified":"2026-09-30T17:31:44.573Z"}],"updatedAt":"2026-11-25T22:59:39.272Z","epss":{"score":0.00423,"percentile":0.38579,"date":"2026-12-01T12:00:22.000Z"}}