CVE-2026-21438: webtransport-go: Memory Exhaustion Attack due to Missing Cleanup of Streams Map
Summary An attacker can cause unbounded memory consumption repeatedly creating and closing many WebTransport streams. Closed streams were not removed from an internal session map, preventing garbage collection of their resources. Details webtransport-go maintains an internal map tracking WebTransport streams (both unidirectional and bidirectional) belonging to a session.
Published Feb 12, 2026
Affected packages
github.com/quic-go/webtransport-go
- Ecosystem
- Go
- Affected
- <= 0.9.0
- Fixed in
- 0.10.0
- Check
go list -m github.com/quic-go/webtransport-go
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
An attacker can cause unbounded memory consumption repeatedly creating and closing many WebTransport streams. Closed streams were not removed from an internal session map, preventing garbage collection of their resources.
Details
webtransport-go maintains an internal map tracking WebTransport streams (both unidirectional and bidirectional) belonging to a session. In affected versions, entries for closed streams were not removed from this map, causing the map to grow indefinitely as streams were created and closed.
A malicious peer can exploit this by opening large numbers of streams and closing them, leading to steady memory growth proportional to the number of closed streams.
The Fix
webtransport-go now removes closed streams from the internal map upon closure. This allows the associated resources to be garbage collected, bounding memory usage to active streams only.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-57497
webtransport-go: Memory Exhaustion Attack due to Buffering of Unknown Capsules
medium5.3Jul 24, 2026CVE-2026-21434
webtransport-go: Memory Exhaustion Attack due to Missing Length Check in WT_CLOSE_SESSION Capsule
medium5.3Feb 12, 2026CVE-2026-21435
webtransport-go: CloseWithError can block indefinitely
medium5.3Feb 12, 2026
