What’s Vulnerable › Vulnerabilities
CVE-2026-97054: HTTP/1 server crash due to MaxBytesReader header race in net/http
- Severity: medium (CVSS 5.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-11-11 · updated 2026-11-16
- Weakness: CWE-362
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.
Affected products
- Go standard library net/http: before 1.26.11; from 1.27.0-0 before 1.27.4 — fixed in 1.26.11, 1.27.4
How to fix
Upgrade to a fixed version: Go standard library net/http 1.26.11, 1.27.4. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/862185
- https://go.dev/issue/82563
- https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM
- https://pkg.go.dev/vuln/GO-2026-6859
Get alerted when CVE-2026-97054 or the next vulnerability affects your stack