Skip to content
Heist/ feed
Back to feed
Medium

webtransport-go affected by Memory Exhaustion Attack due to Missing Length Check in WT_CLOSE_SESSION Capsule

Type: advisorySources: OSV

webtransport-go is an implementation of the WebTransport protocol. From 0.3.0 to 0.9.0, an attacker can cause excessive memory consumption in webtransport-go's session implementation by sending a WT_CLOSE_SESSION capsule containing an excessively large Application Error Message. The implementation does not enforce the draft-mandated limit of 1024 bytes on this field, allowing a peer to send an arbitrarily large message payload that is fully read and stored in memory. This allows an attacker to consume an arbitrary amount of memory. The attacker must transmit the full payload to achieve the memory consumption, but the lack of any upper bound makes large-scale attacks feasible given sufficient bandwidth. This vulnerability is fixed in 0.10.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-21434
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 05:49 UTC · Revision 1

Source evidence

webtransport-go affected by Memory Exhaustion Attack due to Missing Length Check in WT_CLOSE_SESSION Capsule

core-osv · Original source

Published 12 Feb 2026, 18:18 UTC

webtransport-go is an implementation of the WebTransport protocol. From 0.3.0 to 0.9.0, an attacker can cause excessive memory consumption in webtransport-go's session implementation by sending a WT_CLOSE_SESSION capsule containing an excessively large Application Error Message. The implementation does not enforce the draft-mandated limit of 1024 bytes on this field, allowing a peer to send an arbitrarily large message payload that is fully read and stored in memory. This allows an attacker to consume an arbitrary amount of memory. The attacker must transmit the full payload to achieve the memory consumption, but the lack of any upper bound makes large-scale attacks feasible given sufficient bandwidth. This vulnerability is fixed in 0.10.0.

osv:CVE-2026-21434
Complete source record
{
  "id": "08d8c7e8cd00f0391e6ff354cdbfa55cf5dfc1b5c3089eb3adfa23f44c20f01c",
  "url": "https://osv.dev/vulnerability/CVE-2026-21434",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "webtransport-go affected by Memory Exhaustion Attack due to Missing Length Check in WT_CLOSE_SESSION Capsule",
    "summary": "webtransport-go is an implementation of the WebTransport protocol. From 0.3.0 to 0.9.0, an attacker can cause excessive memory consumption in webtransport-go's session implementation by sending a WT_CLOSE_SESSION capsule containing an excessively large Application Error Message. The implementation does not enforce the draft-mandated limit of 1024 bytes on this field, allowing a peer to send an arbitrarily large message payload that is fully read and stored in memory. This allows an attacker to consume an arbitrary amount of memory. The attacker must transmit the full payload to achieve the memory consumption, but the lack of any upper bound makes large-scale attacks feasible given sufficient bandwidth. This vulnerability is fixed in 0.10.0.",
    "evidence": "osv:CVE-2026-21434",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-21434",
      "aliases": [
        "CVE-2026-21434",
        "GHSA-g6x7-jq8p-6q9q",
        "GO-2026-4485"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/quic-go/webtransport-go",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3651182e4ccb173a38035f8f2508ab5834d80a28"
                },
                {
                  "fixed": "9d448b125754f4c83064afb2c586221214e55eec"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.10.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9d448b125754f4c83064afb2c586221214e55eec"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.10.0"
                  },
                  {
                    "cpe": "cpe:2.3:a:quic-go:webtransport-go:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "0.3.0"
                      },
                      {
                        "fixed": "0.10.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.9.0",
            "v0.8.0",
            "v0.7.0",
            "v0.6.0",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.3",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21434.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.012510949Z",
      "provider": "osv",
      "references": [
        "https://github.com/quic-go/webtransport-go/releases/tag/v0.10.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21434.json",
        "https://github.com/quic-go/webtransport-go/security/advisories/GHSA-g6x7-jq8p-6q9q",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-21434"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-770"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21434.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-21434",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518403,
  "published_at": "2026-02-12T18:18:04.821+00:00"
}