GHSA-g35j-m5xg-vh3q

Suggest an improvement
Source
https://github.com/advisories/GHSA-g35j-m5xg-vh3q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-g35j-m5xg-vh3q/GHSA-g35j-m5xg-vh3q.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-g35j-m5xg-vh3q
Aliases
Downstream
CGA (62)
MINI (12)
Published
2026-07-24T20:49:28Z
Modified
2026-08-18T15:10:40Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
webtransport-go: Memory Exhaustion Attack due to Buffering of Unknown Capsules
Details

Summary

An attacker can cause excessive memory allocation in webtransport-go by sending an unknown WebTransport capsule with a large payload. The implementation skips unknown capsules by reading the entire capsule body into memory, instead of draining it without retaining the data. This can lead to memory exhaustion.

Impact

A misbehaving or malicious peer can cause a denial-of-service (DoS) attack against webtransport-go clients or servers by triggering excessive memory allocation, potentially leading to crashes or resource exhaustion.

Details

WebTransport sessions use capsules on the HTTP/3 request stream. Unknown capsule types are ignored, but the capsule body still needs to be consumed before the next capsule can be parsed.

webtransport-go used io.ReadAll when skipping unknown capsules. Since the capsule reader is only limited by the capsule's declared length, a peer could send a large unknown capsule and cause the receiver to allocate memory for the full capsule body.

QUIC flow control limits buffered data, but it does not bound total allocation here, since reading the stream advances the flow control window while retaining the received bytes in memory.

The Fix

webtransport-go now drains unknown capsules to io.Discard instead of buffering them. This consumes the capsule body so parsing can continue, without retaining the payload in memory.

Database specific
{
    "cwe_ids":  [
        "CWE-770"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-07-24T20:49:28Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

Go / github.com/quic-go/webtransport-go

Package

Name
github.com/quic-go/webtransport-go
View open source insights on deps.dev
Purl
pkg:golang/github.com/quic-go/webtransport-go

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.11.1

Database specific

last_known_affected_version_range
"<= 0.11.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-g35j-m5xg-vh3q/GHSA-g35j-m5xg-vh3q.json"