HTTP/1 client connection desynchronization after CONNECT rejection in net/http
When http.Transport sends an HTTP/1 CONNECT request with a non-empty Request.Body, it writes the body directly to the connection without framing after the request headers. If the server rejects the CONNECT request with a non-2xx keep-alive response, Transport returns the connection to the idle pool. Because CONNECT requests do not have a request body, the server may interpret the trailing body bytes as a subsequent pipelined HTTP/1.1 request on the connection, leaving the pooled connection desynchronized and causing the next caller that reuses it to read the response to the injected request. In reverse proxies (including httputil.ReverseProxy) that forward CONNECT requests through a shared Transport, this can lead to cross-user response poisoning.
- Products
- stdlib
- Affected versions
- Not specified
- Fixed versions
- 1.26.9, 1.27.2
- CVEs
- CVE-2026-56866
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 20:02 UTC · Revision 1
Source evidence
HTTP/1 client connection desynchronization after CONNECT rejection in net/http
core-osv · Original sourcePublished 8 Oct 2026, 22:31 UTC
When http.Transport sends an HTTP/1 CONNECT request with a non-empty Request.Body, it writes the body directly to the connection without framing after the request headers. If the server rejects the CONNECT request with a non-2xx keep-alive response, Transport returns the connection to the idle pool. Because CONNECT requests do not have a request body, the server may interpret the trailing body bytes as a subsequent pipelined HTTP/1.1 request on the connection, leaving the pooled connection desynchronized and causing the next caller that reuses it to read the response to the injected request. In reverse proxies (including httputil.ReverseProxy) that forward CONNECT requests through a shared Transport, this can lead to cross-user response poisoning.
osv:GO-2026-6605
stdlib
Fixed versions: 1.26.9, 1.27.2
Complete source record
{
"id": "e8ee36c908c29444eac2da87817d8dacf71b188762d8f37dfa7871c111d2a194",
"url": "https://osv.dev/vulnerability/GO-2026-6605",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "HTTP/1 client connection desynchronization after CONNECT rejection in net/http",
"summary": "When http.Transport sends an HTTP/1 CONNECT request with a non-empty Request.Body, it writes the body directly to the connection without framing after the request headers. If the server rejects the CONNECT request with a non-2xx keep-alive response, Transport returns the connection to the idle pool. Because CONNECT requests do not have a request body, the server may interpret the trailing body bytes as a subsequent pipelined HTTP/1.1 request on the connection, leaving the pooled connection desynchronized and causing the next caller that reuses it to read the response to the injected request. In reverse proxies (including httputil.ReverseProxy) that forward CONNECT requests through a shared Transport, this can lead to cross-user response poisoning.",
"evidence": "osv:GO-2026-6605",
"products": [
{
"name": {
"value": "stdlib",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.26.9",
"evidence": "/affected/0/ranges"
},
{
"value": "1.27.2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "GO-2026-6605",
"aliases": [
"BIT-golang-2026-56866",
"CVE-2026-56866",
"GO-2026-6605"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.26.9"
},
{
"introduced": "1.27.0-0"
},
{
"fixed": "1.27.2"
}
]
}
],
"package": {
"name": "stdlib",
"purl": "pkg:golang/stdlib",
"ecosystem": "Go"
},
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2026-6605.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "net/http",
"symbols": [
"Client.CloseIdleConnections",
"Client.Do",
"Client.Get",
"Client.Head",
"Client.Post",
"Client.PostForm",
"ClientConn.Close",
"ClientConn.RoundTrip",
"Get",
"Head",
"Post",
"PostForm",
"Transport.CloseIdleConnections",
"Transport.NewClientConn",
"Transport.RoundTrip",
"http1ClientConn.Close",
"http1ClientConn.RoundTrip",
"persistConn.readLoop"
]
},
{
"path": "net/http/httputil",
"symbols": [
"DumpRequestOut",
"ReverseProxy.ServeHTTP"
]
}
]
}
}
],
"modified": "2026-10-16T09:55:59.367370212Z",
"provider": "osv",
"references": [
"https://go.dev/cl/847306",
"https://go.dev/issue/81740",
"https://groups.google.com/g/golang-announce/c/U2fTuyDJznI"
],
"provider_metadata": {
"url": "https://pkg.go.dev/vuln/GO-2026-6605",
"review_status": "REVIEWED"
}
},
"related_cves": [
{
"value": "CVE-2026-56866",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 338735,
"published_at": "2026-10-08T22:31:09+00:00"
}