What’s Vulnerable › Vulnerabilities

CVE-2026-97054: HTTP/1 server crash due to MaxBytesReader header race in net/http

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

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

Get alerted when CVE-2026-97054 or the next vulnerability affects your stack