# GO-2026-6859: HTTP/1 server crash due to MaxBytesReader header race in net/http

- Database: Go
- Published: 2026-11-11
- Modified: 2026-11-23

## Tracked as

- [CVE-2026-97054](https://cve.now/CVE-2026-97054.md): Go Standard Library net/http denial of service via race in MaxBytesReader

## Affected versions

- stdlib (Go): fixed in 1.26.11; from 1.27.0-0, fixed in 1.27.4

## Description

For HTTP/1 servers, when MaxBytesReader's limit is exceeded, "Connection: close" header is automatically set without synchronization, which might race with another header being set explicitly in the server handler. As a result, an HTTP/1 server that utilizes MaxBytesReader or MaxBytesHandler can crash due to runtime panic if its handler reads the request body concurrently with writing the response header.

## References

- https://go.dev/cl/862185
- https://go.dev/issue/82563
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM

Page: https://cve.now/GO-2026-6859

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
