MediumGHSA-2f2x-8mwp-p2gcCVE-2026-21438GO-2026-4483

webtransport-go: Memory Exhaustion Attack due to Missing Cleanup of Streams Map

Published 12 Feb 2026 · Updated 10 Sept 2026

Is your project on an affected github.com/quic-go/webtransport-go?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<0.10.0
Fixed in
0.10.0
Update to the fixed version for your release line, for example:go get github.com/quic-go/webtransport-go@v0.10.0

Details

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.

Is GHSA-2f2x-8mwp-p2gc in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/quic-go/webtransport-go, and gives you the command that fixes it.

More advisories for github.com/quic-go/webtransport-go

  • LowCVE-2026-57497webtransport-go: Memory Exhaustion Attack due to Buffering of Unknown Capsules in github.com/quic-go/webtransport-go · 18 Aug 2026
  • MediumCVE-2026-57497webtransport-go: Memory Exhaustion Attack due to Buffering of Unknown Capsules · 24 Jul 2026
  • LowCVE-2026-21434webtransport-go: Memory Exhaustion Attack due to Missing Length Check in WT_CLOSE_SESSION Capsule in github.com/quic-go/webtransport-go · 19 Feb 2026
  • LowCVE-2026-21435webtransport-go: CloseWithError can block indefinitely in github.com/quic-go/webtransport-go · 17 Feb 2026
  • MediumCVE-2026-21435webtransport-go: CloseWithError can block indefinitely · 12 Feb 2026
  • MediumCVE-2026-21434webtransport-go: Memory Exhaustion Attack due to Missing Length Check in WT_CLOSE_SESSION Capsule · 12 Feb 2026
github.com/quic-go/webtransport-go security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.