Update dependency org.asynchttpclient:async-http-client to v2.16.0 [SECURITY] - #269
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/maven-org.asynchttpclient-async-http-client-vulnerability
branch
from
April 24, 2026 21:29
3f04003 to
e45e579
Compare
renovate
Bot
deleted the
renovate/maven-org.asynchttpclient-async-http-client-vulnerability
branch
April 27, 2026 17:53
renovate
Bot
force-pushed
the
renovate/maven-org.asynchttpclient-async-http-client-vulnerability
branch
2 times, most recently
from
April 27, 2026 22:58
e45e579 to
ec42e6f
Compare
renovate
Bot
force-pushed
the
renovate/maven-org.asynchttpclient-async-http-client-vulnerability
branch
from
August 26, 2026 13:53
ec42e6f to
e3c7504
Compare
renovate
Bot
force-pushed
the
renovate/maven-org.asynchttpclient-async-http-client-vulnerability
branch
from
August 31, 2026 22:29
e3c7504 to
6e868fd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.12.4→2.16.0AsyncHttpClient leaks authorization credentials to untrusted domains on cross-origin redirects
CVE-2026-40490 / GHSA-cmxv-58fp-fm3g
More information
Details
Impact
When redirect following is enabled (followRedirect(true)), AsyncHttpClient forwards 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.
Patches
Fixed in version 3.0.9 or 2.14.5. Users should upgrade immediately.
The fix 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.
Workarounds
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 or 2.14.5 because the Realm bypass still re-generates credentials.
Alternatively, disable redirect following (followRedirect(false)) and handle redirects manually with origin validation.
References
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
async-http-client: Cookie header not stripped on cross-origin redirect
CVE-2026-45300 / GHSA-fmxf-pm6p-7xgm
More information
Details
Summary
async-http-client leaks
Cookieheaders to cross-origin redirect targets. When following a redirect across a security boundary (different origin, or HTTPS→HTTP downgrade), thepropagatedHeaders()method inRedirect30xInterceptor.javastripsAuthorizationandProxy-Authorizationheaders but does not stripCookie, so session cookies and other sensitive cookie values are forwarded to the redirect target — which may be attacker-controlled.Details
The vulnerability is in
client/src/main/java/org/asynchttpclient/netty/handler/intercept/Redirect30xInterceptor.java.The caller computes
stripAuthon each redirect:stripAuthistruewhenever the redirect crosses an origin, downgrades the scheme, or the caller opted in viaAsyncHttpClientConfig#isStripAuthorizationOnRedirect().In the vulnerable version,
propagatedHeaders()only removesAuthorizationandProxy-Authorizationin that branch —Cookieis left untouched:The companion test class
RedirectCredentialSecurityTestcoversAuthorization/Proxy-Authorizationstripping on cross-origin redirects and scheme downgrades, but has no coverage forCookie, which is why the regression went unnoticed.Proof of concept
Impact
Realistic attack paths:
Fix
Add
COOKIEto the headers removed alongsideAUTHORIZATION/PROXY_AUTHORIZATIONon the security-boundary branch:Note that the URI-scoped
CookieStorewill re-add any cookies that legitimately match the new target afterpropagatedHeadersreturns, so legitimate cross-origin sessions tracked by the client are not broken.Fixed in 3.0.10 and 2.15.0 by commit
3b0e3e9e.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
AsyncHttpClient stores cookie for an unrelated domain (cookie tossing) via ThreadSafeCookieStore
CVE-2026-55688 / GHSA-m452-q8c9-rg2f
More information
Details
Impact
A cookie tossing / cookie injection issue (CWE-1275).
ThreadSafeCookieStorestored a cookie under the value of itsDomainattribute without verifying that the responding host is allowed to set a cookie for that domain (RFC 6265 §5.3 step 6). A host the client connects to can therefore plant a cookie scoped to an unrelated domain, and the client will then send that cookie on later requests to that domain.Who is Impacted
Applications that use a single
AsyncHttpClientinstance - and thus the default, sharedCookieStore- to reach both an attacker-influenced host and a trusted host. Typical exposure: crawlers, link-preview / webhook fetchers, SSRF-style "fetch this URL" features, multi-backend aggregators, or following redirects to an attacker-controlled host. The attacker can write a cookie the client presents to the victim host (session fixation, overwriting a session id / CSRF-token cookie); they cannot read the victim host's cookies. Applications that talk only to a fixed trusted backend, or that disable/scope the cookie store, are not exposed.Patches
Fixed in 3.0.11 and 2.16.0
Workarounds
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:L/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.