async-http-client is vulnerable to Insufficient Verification of Data Authenticity
37
CVE Score
Low
Insufficient Verification of Data Authenticity
The entry point is WebSocketHandler.upgrade(), invoked when a client processes a server's HTTP 101 WebSocket upgrade response; the attacker-reachable input is the server-supplied Sec-WebSocket-Accept response header compared against the value derived from the client-generated Sec-WebSocket-Key. When this header was missing or mismatched, the code called requestSender.abort() to fail the pending future but then fell through to install the WebSocket pipeline and call setWebSocket()/onOpen, so any WebSocket frames arriving coalesced with the invalid 101 response in the same TCP read were decoded and delivered to the application listener even though the handshake was never validated. The fix adds a return statement immediately after the abort() call in upgrade() so that an invalid or missing Sec-WebSocket-Accept now stops pipeline installation and prevents delivery of any subsequent frames.
Upgrade the org.asynchttpclient:async-http-client package to a fixed release on your branch: 3.0.12, 2.16.1.
You are affected if you are using a version that falls within the vulnerable range and are using the WebSocket client functionality to connect to a WebSocket server.
2.0.0 - 2.16.0
Fixed in 2.16.13.0.0 - 3.0.11
Fixed in 3.0.12async-http-client is vulnerable to Insufficient Verification of Data Authenticity in versions 3.0.0 - 3.0.11 and 2.0.0 - 2.16.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.