Skip to main content

CVE-2026-78659 — Vulnerability in golang.org/x/net — CVE Details

HTTP/2 server memory exhaustion due to Trailer headers in net/http

Published October 8, 2026Updated November 14, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.01%). Schedule for your next planned update.

Does your project use an affected golang.org/x/net version?

Paste your go.sum to check it for CVE-2026-78659 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

When "Trailer" headers are sent by a client, the HTTP server internally uses the header values to populate the Request.Trailer map passed to the server handler. Because Request.Trailer is a map, each entry incurs memory overhead. For HTTP/2 servers, a malicious client can exploit this by sending a "Trailer" header that declares a large number of fields, causing the server to allocate a disproportionate amount of memory while bypassing Server.MaxHeaderValueCount and Server.MaxHeaderBytes limits. This exploit is not applicable for HTTP/1 servers, which do not support multiplexing a large number of requests over one TCP connection, and whose Server.MaxHeaderBytes are calculated differently.

Advisory Timeline

  • First published October 8, 2026 (49 days ago).
  • Last revised November 14, 2026 — 37 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update golang.org/x/net to 0.60.0 or later
go get golang.org/x/net@v0.60.0
Go
Update stdlib to 1.26.9 or later
go get stdlib@v1.26.9
Go
Update stdlib to 1.27.2 or later
go get stdlib@v1.27.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Go (2).

PackageFixed In
golang.org/x/net Go · Affected: All versions0.60.0
stdlib Go · Affected: All versions1.26.9
stdlib Go · Affected: All versions1.27.2

Frequently Asked Questions

What is CVE-2026-78659?
HTTP/2 server memory exhaustion due to Trailer headers in net/http. This vulnerability has been assigned a severity rating of Unknown.
How do I check if my project is affected by CVE-2026-78659?
CVE-2026-78659 affects golang.org/x/net and stdlib. It has a 1.0% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-78659 and 200,000+ other known vulnerabilities.

Severity & Exploitability

EPSS Score (30-day exploit probability)
1.01%
EPSS percentile: 61.9

This is an above-median EPSS score — 61.9% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GO-2026-6603
BIT-golang-2026-78659

Related CVEs

  • CVE-2021-31525

    Panic due to large headers in net/http and golang.org/x/net/http/httpguts

  • CVE-2021-44716

    Unbounded memory growth in net/http and golang.org/x/net/http2

  • CVE-2026-39821

    Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna

  • CVE-2026-46600

    Parsing an invalid SVCB or HTTPS RR can panic in golang.org/x/net/dns/dnsmessage

  • CVE-2026-78660

    HTTP/2 transport accepts malformed framing-related headers in net/http

  • CVE-2026-78669

    Excessive CPU consumption from repeated initial window changes in net/http

  • CVE-2026-78663

    Double flow control refund on HTTP/2 server streams in net/http

  • CVE-2026-97032

    HTTP/2 server crash due to HPACK encoder race in net/http

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum