GO-2026-6859 can crash a Go HTTP/1 server that uses MaxBytesReader or MaxBytesHandler. The fix is in the Go toolchain, in Go 1.27.4 and Go 1.26.11, both released on November 10. Updating the modules in go.mod won’t clear it.
The fix also doesn’t exist for Go 1.25 or older, because those lines no longer get patches. This post covers who is affected, the one precondition for getting the fix, and a checklist for this week.
Table of Contents
- Who the panic hits
- Why updating modules doesn’t fix it
- The precondition: a supported Go release
- What to do this week
- FAQ
- Sources and related posts
Who the panic hits
The Go vulnerability report describes the bug like this. On HTTP/1, when the MaxBytesReader limit is exceeded, Go sets Connection: close on the response. It does that without synchronization, so the write can race a header your handler sets at the same moment. That race ends in a runtime panic.
You’re exposed when all of these hold:
- The server speaks HTTP/1.
- It wraps request bodies with
MaxBytesReaderorMaxBytesHandler. - A handler reads the request body concurrently with writing the response header.
- It’s built with Go older than 1.26.11, or with 1.27.0 through 1.27.3.
The report is CVE-2026-97054, published November 11, 2026. It lists 87 affected net/http symbols, including ListenAndServe, Serve and Client.Do.
Why updating modules doesn’t fix it
The report lists net/http under “standard library.” Its affected versions are Go releases (“before go1.26.11, from go1.27.0-0 before go1.27.4”), not module versions. go get -u ./... and go mod tidy update your dependencies. They don’t change the net/http that gets compiled into your binary.
Projects are already filing issues to change the toolchain itself. One is titled “move the toolchain to go1.27.4.”
Rewriting handlers doesn’t solve it either. A handler change only covers the handlers you find. The same release fixed twelve CVEs: CVE-2026-97033 through CVE-2026-97043, plus CVE-2026-97054. The release notes list security fixes to cgo, the go command, the compiler, the linker and net/http. Patching one handler leaves the other eleven in place.
The precondition: a supported Go release
The release policy is one line: “Each major Go release is supported until there are two newer major releases.”
Go 1.27.0 shipped on 2026-08-19. The newest Go 1.25 release on the history page is go1.25.14, from that same day. When GO-2026-6859 was fixed, Go 1.25 got nothing.
| Go line | Newest patch | Released | Fixes GO-2026-6859 |
|---|---|---|---|
| 1.27 | go1.27.4 | 2026-11-10 | Yes |
| 1.26 | go1.26.11 | 2026-11-10 | Yes |
| 1.25 | go1.25.14 | 2026-08-19 | No, line unsupported |
| 1.24 | go1.24.13 | 2026-02-04 | No, line unsupported |
The supported lines got patches often this fall:
- 2026-10-08: go1.27.2 and go1.26.9, security fixes in seven areas including
crypto/tlsandnet/http. - 2026-10-19: go1.27.3 and go1.26.10, security fixes to
crypto/x509. - 2026-11-10: go1.27.4 and go1.26.11, the release above.
That’s three security releases in 33 days. Each one is a small patch upgrade if you’re on a supported line. On 1.25, each one means a major upgrade done under pressure.
Major releases land in February and August: 1.25.0 on 2025-08-12, 1.26.0 on 2026-02-10, 1.27.0 on 2026-08-19. I’d plan a major upgrade every time one ships. Then you’re never more than one line behind when the next one arrives.
What to do this week
Start by finding which Go built each service you run:
# Go on this machine (run it in CI too)
go version
# the Go version recorded in a binary you already ship
go version -m ./bin/api | head -n 1
# the version lines in your module
grep -E '^(go|toolchain) ' go.mod
Then work through this list:
- On 1.27.x, move to 1.27.4. On 1.26.x, move to 1.26.11.
- On 1.25 or older, plan the jump to 1.26.11 or 1.27.4 now and run your full test suite.
- Update every place that picks the Go version:
go.mod, the CI setup step, and theFROMline of your Docker build stage. - Rebuild and redeploy every binary. Compiler and linker fixes only reach binaries you rebuild.
- Scan again after the rebuild.
# move the module's toolchain to the patched release
go get toolchain@go1.27.4
# scan for known vulnerabilities after rebuilding
govulncheck ./...
Can’t ship a new build today? Then look for handlers that read the body in a goroutine while another goroutine writes headers. That’s the pattern the report describes, so I’d review those handlers first.
FAQ
What is GO-2026-6859?
It’s a race in Go’s net/http for HTTP/1 servers. When the MaxBytesReader limit is exceeded, Go sets Connection: close without synchronization. If the handler reads the body while writing headers, the server can panic.
Which Go versions fix CVE-2026-97054?
Go 1.27.4 and Go 1.26.11, both released on 2026-11-10. Every version before 1.26.11 is affected, and so are 1.27.0 through 1.27.3.
Does go get -u fix a Go standard library vulnerability?
No. The report lists affected Go releases, and net/http comes from the Go toolchain that builds your binary. Change the Go version, then rebuild.
Is Go 1.25 still getting security fixes?
No. Go supports a major release until two newer ones exist, and Go 1.27 shipped on 2026-08-19. The newest 1.25 release is go1.25.14 from that day.
How do I know if my server is affected?
Check the Go version that built the binary, for example with go version -m. Then check whether you use MaxBytesReader or MaxBytesHandler on HTTP/1. The last condition is a handler that reads the body concurrently with writing headers.
How often does Go ship security releases?
This fall the supported lines got three security releases in 33 days: October 8, October 19 and November 10. On a supported line, each one is a patch upgrade.
Sources and related posts
Sources:
- GO-2026-6859 vulnerability report, Go Packages
- Go release history and release policy, go.dev
- Go 1.27.4 and 1.26.11 security releases set for November 10, freenode
- Example upgrade issue: move the toolchain to go1.27.4, GitHub
More on running Go in production:
- Go microservices in production: lessons
- easypprof: production-safe pprof for Go
- Java4Shell: mitigating a runtime RCE, which covers the same patch-the-runtime problem on the JVM
- All Go posts: /blog/go