CVE-2026-107285
AsyncHttpClient: WebSocket proxy credentials sent to the origin server over a CONNECT tunnel
Description
Impact
When a ws:// request is routed through an HTTP proxy with proxy authentication configured, the client tunnels the connection with an HTTP CONNECT, the same as it does for https://. Once the tunnel is open, the WebSocket upgrade request that follows is sent through the tunnel directly to the origin server, not to the proxy. The proxy-auth gate and the companion request-target selection keyed only on whether the URI was secured, which is false for ws://, so the tunnelled upgrade request incorrectly carried the proxy's Proxy-Authorization header and an absolute-form request target meant for the proxy. Any origin server reached over a proxied ws:// connection, or anyone positioned on the origin side of the wire, could recover the proxy credentials: directly for Basic, or as a replayable and offline-crackable response for Digest.
Affected versions
- 3.x: up to and including 3.0.11
- 2.x: up to and including 2.16.0
Patches
Fixed in 3.0.12 on the 3.x line and in 2.16.1 on the 2.x line. The preemptive Proxy-Authorization header and the absolute-form request target are no longer attached to a tunnelled ws:// upgrade; a ws:// request is now treated like wss://.
Workarounds
Do not use proxy authentication together with ws:// requests through an HTTP proxy, or use wss:// instead.
Details
The proxy-auth gate in NettyRequestFactory#newNettyRequest and the sibling branch in requestUri() did not exclude WebSocket URIs, even though the CONNECT-tunnelling check in NettyRequestSender already tunnels ws:// through CONNECT exactly like https://.
Note that 3.0.12 is itself affected by a separate issue, GHSA-rqf5-2wxv-rjf4, where a Digest challenge the client cannot read downgrades to Basic and sends the password in cleartext. Upgrade to 3.0.13 to pick up both fixes.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.asynchttpclient » async-http-client | >= 2.0.0, < 2.16.1>= 3.0.0, < 3.0.12 | 2.16.1, 3.0.12 |
Blast radius
67% of the dependent artifacts (2,338) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 23,532 |
| 2 hops | 83,539 |
| 3 hops | 44,749 |
| 4 hops | 36,293 |
| 5 hops | 24,158 |
| 6 hops | 8,361 |
Most used dependents
- org.seleniumhq.selenium » selenium-java2,089 usages
- com.typesafe.play » play-test1,902 usages
- org.scalatestplus.play » scalatestplus-play1,286 usages
- com.typesafe.play » play-ws755 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.seleniumhq.selenium » selenium-remote-driver469 usages
- org.seleniumhq.selenium » selenium-chrome-driver437 usages
- org.seleniumhq.selenium » selenium-support421 usages
- org.seleniumhq.selenium » selenium-firefox-driver372 usages
- io.appium » java-client350 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- com.atlassian.selenium » atlassian-webdriver-core292 usages
- com.vaadin » vaadin-testbench259 usages
- com.atlassian.jira » atlassian-jira-pageobjects230 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-3wp9-xfwm-rjjf
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-107285
- Webhttps://github.com/AsyncHttpClient/async-http-client/commit/6e9cb75a9b7259353f983fc90ca28b1da3742e18
- Webhttps://github.com/AsyncHttpClient/async-http-client/commit/c4feab0f7f86d61505a48e40d383c8a375a22e18
- Packagehttps://github.com/AsyncHttpClient/async-http-client
- Webhttps://github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-2.16.1
- Webhttps://github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-3.0.12
