Search

Find a vulnerability

Search criteria

    9 vulnerabilities found for gun by ninenines

    FKIE_CVE-2026-43974

    Vulnerability from fkie_nvd - Published: 2026-06-08 15:16 - Updated: 2026-11-20 07:17
    Summary
    Unexpected Status Code or Return Value vulnerability in ninenines gun (gun_http module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response. In gun_http:handle_inform/8, when a 101 Switching Protocols response is received over HTTP/1.1, the function verifies only that the Upgrade header is syntactically valid and that the stream reference is a plain reference(). It does not check whether the client ever sent an Upgrade or Connection: upgrade header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a gun_upgrade message to the caller and transition the entire connection to raw protocol mode. A malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, gun_raw applies no flow control (flow=infinity) and re-arms socket active mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded gun_data messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM. This issue affects gun: from 2.0.0-pre.1 before 2.4.0.
    Impacted products
    Vendor Product Version
    ninenines gun *

    {
      "affected": [
        {
          "affectedData": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "gun",
              "packageURL": "pkg:hex/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle_head/4"
                },
                {
                  "name": "gun_http:handle_inform/7"
                },
                {
                  "name": "gun_http:handle_inform/8"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "2.4.0",
                  "status": "affected",
                  "version": "2.0.0-pre.1",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "ninenines/gun",
              "packageURL": "pkg:github/ninenines/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle_head/4"
                },
                {
                  "name": "gun_http:handle_inform/7"
                },
                {
                  "name": "gun_http:handle_inform/8"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "5b48068c29ce5e112cb149b5857c7d4dc319a81b",
                  "status": "affected",
                  "version": "a3c2edbb8c807717e2f10520c6cf1e77a62eab2e",
                  "versionType": "git"
                }
              ]
            }
          ],
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "749B0FB5-7AC7-4FAB-A461-90450AA8AC67",
                  "versionEndExcluding": "2.4.0",
                  "versionStartIncluding": "2.0.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "Unexpected Status Code or Return Value vulnerability in ninenines gun (gun_http module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response.\n\nIn gun_http:handle_inform/8, when a 101 Switching Protocols response is received over HTTP/1.1, the function verifies only that the Upgrade header is syntactically valid and that the stream reference is a plain reference(). It does not check whether the client ever sent an Upgrade or Connection: upgrade header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a gun_upgrade message to the caller and transition the entire connection to raw protocol mode.\n\nA malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, gun_raw applies no flow control (flow=infinity) and re-arms socket active mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded gun_data messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM.\n\nThis issue affects gun: from 2.0.0-pre.1 before 2.4.0."
        },
        {
          "lang": "es",
          "value": "Una vulnerabilidad de c\u00f3digo de estado o valor de retorno inesperado en ninenines gun (m\u00f3dulo gun_http) permite a un servidor HTTP malicioso forzar al cliente a un modo de protocolo sin procesar a trav\u00e9s de una respuesta 101 Switching Protocols no solicitada.\n\nEn gun_http:handle_inform/8, cuando se recibe una respuesta 101 Switching Protocols sobre HTTP/1.1, la funci\u00f3n verifica solo que el encabezado Upgrade es sint\u00e1cticamente v\u00e1lido y que la referencia de flujo es una referencia simple(). No verifica si el cliente alguna vez envi\u00f3 un encabezado Upgrade o Connection: upgrade en la solicitud correspondiente. Debido a que esta verificaci\u00f3n est\u00e1 ausente, cualquier respuesta 101 (solicitada o no) hace que gun env\u00ede un mensaje gun_upgrade al llamador y transicione toda la conexi\u00f3n a modo de protocolo sin procesar.\n\nUn servidor HTTP malicioso o comprometido puede enviar una respuesta 101 no solicitada a cualquier solicitud HTTP/1.1, haciendo que el cliente gun abandone el encuadre HTTP para esa conexi\u00f3n. Una vez en modo sin procesar, gun_raw no aplica control de flujo (flow=infinity) y rearma el modo activo del socket despu\u00e9s de cada paquete recibido, por lo que el servidor puede inundar al cliente con bytes arbitrarios. Estos se reenv\u00edan como mensajes gun_data ilimitados al proceso propietario, agotando su buz\u00f3n y la memoria BEAM, lo que finalmente provoca el bloqueo de la VM.\n\nEste problema afecta a gun: desde 2.0.0 antes de 2.4.0."
        }
      ],
      "id": "CVE-2026-43974",
      "lastModified": "2026-11-20T07:17:16.560",
      "metrics": {
        "cvssMetricV31": [
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "HIGH",
              "baseScore": 7.5,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            },
            "exploitabilityScore": 3.9,
            "impactScore": 3.6,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ],
        "cvssMetricV40": [
          {
            "cvssData": {
              "Automatable": "NOT_DEFINED",
              "Recovery": "NOT_DEFINED",
              "Safety": "NOT_DEFINED",
              "attackComplexity": "LOW",
              "attackRequirements": "NONE",
              "attackVector": "NETWORK",
              "availabilityRequirement": "NOT_DEFINED",
              "baseScore": 8.7,
              "baseSeverity": "HIGH",
              "confidentialityRequirement": "NOT_DEFINED",
              "exploitMaturity": "NOT_DEFINED",
              "integrityRequirement": "NOT_DEFINED",
              "modifiedAttackComplexity": "NOT_DEFINED",
              "modifiedAttackRequirements": "NOT_DEFINED",
              "modifiedAttackVector": "NOT_DEFINED",
              "modifiedPrivilegesRequired": "NOT_DEFINED",
              "modifiedSubAvailabilityImpact": "NOT_DEFINED",
              "modifiedSubConfidentialityImpact": "NOT_DEFINED",
              "modifiedSubIntegrityImpact": "NOT_DEFINED",
              "modifiedUserInteraction": "NOT_DEFINED",
              "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
              "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
              "modifiedVulnIntegrityImpact": "NOT_DEFINED",
              "privilegesRequired": "NONE",
              "providerUrgency": "NOT_DEFINED",
              "subAvailabilityImpact": "NONE",
              "subConfidentialityImpact": "NONE",
              "subIntegrityImpact": "NONE",
              "userInteraction": "NONE",
              "valueDensity": "NOT_DEFINED",
              "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
              "version": "4.0",
              "vulnAvailabilityImpact": "HIGH",
              "vulnConfidentialityImpact": "NONE",
              "vulnIntegrityImpact": "NONE",
              "vulnerabilityResponseEffort": "NOT_DEFINED"
            },
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "type": "Secondary"
          }
        ],
        "ssvcV203": [
          {
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "ssvcData": {
              "id": "CVE-2026-43974",
              "options": [
                {
                  "exploitation": "none"
                },
                {
                  "automatable": "yes"
                },
                {
                  "technicalImpact": "partial"
                }
              ],
              "role": "CISA Coordinator",
              "timestamp": "2026-06-08T15:41:42.657559Z",
              "version": "2.0.3"
            }
          }
        ]
      },
      "published": "2026-06-08T15:16:46.870",
      "references": [
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://cna.erlef.org/cves/CVE-2026-43974.html"
        },
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "tags": [
            "Patch"
          ],
          "url": "https://github.com/ninenines/gun/commit/5b48068c29ce5e112cb149b5857c7d4dc319a81b"
        },
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "url": "https://github.com/ninenines/gun/commit/a3c2edbb8c807717e2f10520c6cf1e77a62eab2e"
        },
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "tags": [
            "Patch",
            "Third Party Advisory"
          ],
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-43974"
        }
      ],
      "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "vulnStatus": "Modified",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-841"
            }
          ],
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "type": "Secondary"
        }
      ]
    }

    FKIE_CVE-2026-43973

    Vulnerability from fkie_nvd - Published: 2026-06-08 15:16 - Updated: 2026-11-20 07:17
    Summary
    Uncontrolled Resource Consumption vulnerability in ninenines gun (gun_http module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering. In gun_http:handle/5, three clauses accumulate incoming TCP data into the connection's buffer field using binary concatenation with no upper-bound check: the head clause appends data until the \r\n\r\n header terminator is found; the body_chunked clause appends data whenever cow_http_te:stream_chunked/2 returns a more result indicating an incomplete chunk boundary; and the body_trailer clause appends data until the trailing \r\n\r\n is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size. A malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with HTTP/1.1 200 OK\r\nX-Pad: followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash. This issue affects gun: from 1.0.0-pre.1 before 2.4.0.
    Impacted products
    Vendor Product Version
    ninenines gun *

    {
      "affected": [
        {
          "affectedData": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "gun",
              "packageURL": "pkg:hex/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle/2"
                },
                {
                  "name": "gun_http:handle/4"
                },
                {
                  "name": "gun_http:handle/5"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "2.4.0",
                  "status": "affected",
                  "version": "1.0.0-pre.1",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "ninenines/gun",
              "packageURL": "pkg:github/ninenines/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle/2"
                },
                {
                  "name": "gun_http:handle/4"
                },
                {
                  "name": "gun_http:handle/5"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25",
                  "status": "affected",
                  "version": "11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f",
                  "versionType": "git"
                }
              ]
            }
          ],
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "04AAA2F4-9E00-4AEF-847F-89DE53ECA680",
                  "versionEndExcluding": "2.4.0",
                  "versionStartIncluding": "1.0.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "Uncontrolled Resource Consumption vulnerability in ninenines gun (gun_http module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering.\n\nIn gun_http:handle/5, three clauses accumulate incoming TCP data into the connection\u0027s buffer field using binary concatenation with no upper-bound check: the head clause appends data until the \\r\\n\\r\\n header terminator is found; the body_chunked clause appends data whenever cow_http_te:stream_chunked/2 returns a more result indicating an incomplete chunk boundary; and the body_trailer clause appends data until the trailing \\r\\n\\r\\n is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size.\n\nA malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with HTTP/1.1 200 OK\\r\\nX-Pad:  followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash.\n\nThis issue affects gun: from 1.0.0-pre.1 before 2.4.0."
        },
        {
          "lang": "es",
          "value": "Vulnerabilidad de Consumo de Recursos Incontrolado en ninenines gun (m\u00f3dulo gun_http) permite a un servidor malicioso agotar la memoria del cliente a trav\u00e9s del almacenamiento en b\u00fafer de respuestas HTTP/1.1 ilimitado.\n\nEn gun_http:handle/5, tres cl\u00e1usulas acumulan datos TCP entrantes en el campo de b\u00fafer de la conexi\u00f3n utilizando concatenaci\u00f3n binaria sin verificaci\u00f3n de l\u00edmite superior: la cl\u00e1usula \u0027head\u0027 a\u00f1ade datos hasta que se encuentra el terminador de encabezado \\r\\n\\r\\n; la cl\u00e1usula \u0027body_chunked\u0027 a\u00f1ade datos cada vez que cow_http_te:stream_chunked/2 devuelve un resultado \u0027more\u0027 indicando un l\u00edmite de fragmento incompleto; y la cl\u00e1usula \u0027body_trailer\u0027 a\u00f1ade datos hasta que se encuentra el \\r\\n\\r\\n final. En cada caso, cuando el terminador esperado nunca llega, el binario ampliado se almacena de nuevo en el estado y el proceso espera m\u00e1s datos, sin un l\u00edmite configurable o codificado r\u00edgidamente para el tama\u00f1o del b\u00fafer.\n\nUn servidor malicioso o comprometido puede explotar esto enviando una respuesta parcial que nunca se completa. Por ejemplo, una respuesta puede comenzar con HTTP/1.1 200 OK\\r\\nX-Pad: seguido de un flujo ilimitado de bytes arbitrarios, sin enviar nunca el terminador de encabezado. El proceso de conexi\u00f3n de gun a\u00f1adir\u00e1 continuamente los datos entrantes a su b\u00fafer, causando un crecimiento ilimitado del \u0027heap\u0027. Debido a que BEAM no impone un l\u00edmite de \u0027heap\u0027 por proceso por defecto, una \u00fanica conexi\u00f3n maliciosa puede agotar toda la memoria disponible en el nodo, causando un fallo por falta de memoria en todo el nodo.\n\nEste problema afecta a gun: desde 1.0.0 antes de 2.4.0."
        }
      ],
      "id": "CVE-2026-43973",
      "lastModified": "2026-11-20T07:17:16.290",
      "metrics": {
        "cvssMetricV31": [
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "HIGH",
              "baseScore": 7.5,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "NONE",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            },
            "exploitabilityScore": 3.9,
            "impactScore": 3.6,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ],
        "cvssMetricV40": [
          {
            "cvssData": {
              "Automatable": "NOT_DEFINED",
              "Recovery": "NOT_DEFINED",
              "Safety": "NOT_DEFINED",
              "attackComplexity": "LOW",
              "attackRequirements": "NONE",
              "attackVector": "NETWORK",
              "availabilityRequirement": "NOT_DEFINED",
              "baseScore": 8.7,
              "baseSeverity": "HIGH",
              "confidentialityRequirement": "NOT_DEFINED",
              "exploitMaturity": "NOT_DEFINED",
              "integrityRequirement": "NOT_DEFINED",
              "modifiedAttackComplexity": "NOT_DEFINED",
              "modifiedAttackRequirements": "NOT_DEFINED",
              "modifiedAttackVector": "NOT_DEFINED",
              "modifiedPrivilegesRequired": "NOT_DEFINED",
              "modifiedSubAvailabilityImpact": "NOT_DEFINED",
              "modifiedSubConfidentialityImpact": "NOT_DEFINED",
              "modifiedSubIntegrityImpact": "NOT_DEFINED",
              "modifiedUserInteraction": "NOT_DEFINED",
              "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
              "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
              "modifiedVulnIntegrityImpact": "NOT_DEFINED",
              "privilegesRequired": "NONE",
              "providerUrgency": "NOT_DEFINED",
              "subAvailabilityImpact": "NONE",
              "subConfidentialityImpact": "NONE",
              "subIntegrityImpact": "NONE",
              "userInteraction": "NONE",
              "valueDensity": "NOT_DEFINED",
              "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
              "version": "4.0",
              "vulnAvailabilityImpact": "HIGH",
              "vulnConfidentialityImpact": "NONE",
              "vulnIntegrityImpact": "NONE",
              "vulnerabilityResponseEffort": "NOT_DEFINED"
            },
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "type": "Secondary"
          }
        ],
        "ssvcV203": [
          {
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "ssvcData": {
              "id": "CVE-2026-43973",
              "options": [
                {
                  "exploitation": "none"
                },
                {
                  "automatable": "yes"
                },
                {
                  "technicalImpact": "partial"
                }
              ],
              "role": "CISA Coordinator",
              "timestamp": "2026-06-08T15:48:05.292583Z",
              "version": "2.0.3"
            }
          }
        ]
      },
      "published": "2026-06-08T15:16:46.700",
      "references": [
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://cna.erlef.org/cves/CVE-2026-43973.html"
        },
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "url": "https://github.com/ninenines/gun/commit/11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f"
        },
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "tags": [
            "Patch"
          ],
          "url": "https://github.com/ninenines/gun/commit/f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25"
        },
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "tags": [
            "Patch",
            "Third Party Advisory"
          ],
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-43973"
        }
      ],
      "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "vulnStatus": "Modified",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-770"
            }
          ],
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "type": "Secondary"
        }
      ]
    }

    FKIE_CVE-2026-43972

    Vulnerability from fkie_nvd - Published: 2026-06-08 15:16 - Updated: 2026-11-20 07:17
    Summary
    Origin Validation Error vulnerability in ninenines gun (gun_http2 module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority. In gun_http2:push_promise_frame/7, the :authority pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection's origin. When gun_http2:headers_frame/9 later processes the response headers for the promised stream, it calls gun_cookies:set_cookie_header/7 with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 §10.6 / RFC 9113 §8.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for. A malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client's shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required. This issue affects gun: from 2.0.0-pre.2 before 2.4.0.
    Impacted products
    Vendor Product Version
    ninenines gun *

    {
      "affected": [
        {
          "affectedData": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http2"
              ],
              "packageName": "gun",
              "packageURL": "pkg:hex/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http2.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http2:push_promise_frame/7"
                },
                {
                  "name": "gun_http2:headers_frame/8"
                },
                {
                  "name": "gun_http2:headers_frame/9"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "2.4.0",
                  "status": "affected",
                  "version": "2.0.0-pre.2",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http2"
              ],
              "packageName": "ninenines/gun",
              "packageURL": "pkg:github/ninenines/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http2.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http2:push_promise_frame/7"
                },
                {
                  "name": "gun_http2:headers_frame/8"
                },
                {
                  "name": "gun_http2:headers_frame/9"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "567863ff53802fed21c3b3f25812db7f7ae29676",
                  "status": "affected",
                  "version": "87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3",
                  "versionType": "git"
                }
              ]
            }
          ],
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
        }
      ],
      "configurations": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*",
                  "matchCriteriaId": "749B0FB5-7AC7-4FAB-A461-90450AA8AC67",
                  "versionEndExcluding": "2.4.0",
                  "versionStartIncluding": "2.0.0",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "cveTags": [],
      "descriptions": [
        {
          "lang": "en",
          "value": "Origin Validation Error vulnerability in ninenines gun (gun_http2 module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.\n\nIn gun_http2:push_promise_frame/7, the :authority pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection\u0027s origin. When gun_http2:headers_frame/9 later processes the response headers for the promised stream, it calls gun_cookies:set_cookie_header/7 with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 \u00a710.6 / RFC 9113 \u00a78.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for.\n\nA malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client\u0027s shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required.\n\nThis issue affects gun: from 2.0.0-pre.2 before 2.4.0."
        },
        {
          "lang": "es",
          "value": "Vulnerabilidad de error de validaci\u00f3n de origen en ninenines gun (m\u00f3dulo gun_http2) permite la inyecci\u00f3n de cookies de origen cruzado a trav\u00e9s de la autoridad PUSH_PROMISE de HTTP/2 no validada.\n\nEn gun_http2:push_promise_frame/7, el pseudo-encabezado :authority de un frame PUSH_PROMISE entrante se almacena textualmente en el registro del stream prometido sin verificar que coincida con el origen de la conexi\u00f3n. Cuando gun_http2:headers_frame/9 procesa posteriormente los encabezados de respuesta para el stream prometido, llama a gun_cookies:set_cookie_header/7 con la autoridad proporcionada por el servidor no validada antes de cualquier ramificaci\u00f3n de estado y antes de que el c\u00f3digo de usuario pueda actuar. Esto viola RFC 7540 \u00a710.6 / RFC 9113 \u00a78.4, que requieren que los receptores traten como un error de protocolo cualquier push para un recurso para el que el servidor no es autoritativo.\n\nUn servidor HTTP/2 malicioso o comprometido puede insertar cookies con alcance a dominios de terceros arbitrarios en el almac\u00e9n de cookies compartido del cliente. Esto permite ataques de fijaci\u00f3n de sesi\u00f3n contra esos dominios y, si la cookie insertada anula un token de sesi\u00f3n leg\u00edtimo, puede resultar en la toma de control de la cuenta. No se requiere interacci\u00f3n del usuario m\u00e1s all\u00e1 de realizar una solicitud HTTP/2 normal al servidor controlado por el atacante.\n\nEste problema afecta a gun: desde 2.0.0 antes de 2.4.0."
        }
      ],
      "id": "CVE-2026-43972",
      "lastModified": "2026-11-20T07:17:15.960",
      "metrics": {
        "cvssMetricV31": [
          {
            "cvssData": {
              "attackComplexity": "LOW",
              "attackVector": "NETWORK",
              "availabilityImpact": "NONE",
              "baseScore": 7.2,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "LOW",
              "integrityImpact": "LOW",
              "privilegesRequired": "NONE",
              "scope": "CHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N",
              "version": "3.1"
            },
            "exploitabilityScore": 3.9,
            "impactScore": 2.7,
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ],
        "cvssMetricV40": [
          {
            "cvssData": {
              "Automatable": "NOT_DEFINED",
              "Recovery": "NOT_DEFINED",
              "Safety": "NOT_DEFINED",
              "attackComplexity": "LOW",
              "attackRequirements": "PRESENT",
              "attackVector": "NETWORK",
              "availabilityRequirement": "NOT_DEFINED",
              "baseScore": 6.3,
              "baseSeverity": "MEDIUM",
              "confidentialityRequirement": "NOT_DEFINED",
              "exploitMaturity": "NOT_DEFINED",
              "integrityRequirement": "NOT_DEFINED",
              "modifiedAttackComplexity": "NOT_DEFINED",
              "modifiedAttackRequirements": "NOT_DEFINED",
              "modifiedAttackVector": "NOT_DEFINED",
              "modifiedPrivilegesRequired": "NOT_DEFINED",
              "modifiedSubAvailabilityImpact": "NOT_DEFINED",
              "modifiedSubConfidentialityImpact": "NOT_DEFINED",
              "modifiedSubIntegrityImpact": "NOT_DEFINED",
              "modifiedUserInteraction": "NOT_DEFINED",
              "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
              "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
              "modifiedVulnIntegrityImpact": "NOT_DEFINED",
              "privilegesRequired": "NONE",
              "providerUrgency": "NOT_DEFINED",
              "subAvailabilityImpact": "NONE",
              "subConfidentialityImpact": "LOW",
              "subIntegrityImpact": "LOW",
              "userInteraction": "NONE",
              "valueDensity": "NOT_DEFINED",
              "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
              "version": "4.0",
              "vulnAvailabilityImpact": "NONE",
              "vulnConfidentialityImpact": "NONE",
              "vulnIntegrityImpact": "LOW",
              "vulnerabilityResponseEffort": "NOT_DEFINED"
            },
            "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "type": "Secondary"
          }
        ],
        "ssvcV203": [
          {
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "ssvcData": {
              "id": "CVE-2026-43972",
              "options": [
                {
                  "exploitation": "none"
                },
                {
                  "automatable": "no"
                },
                {
                  "technicalImpact": "partial"
                }
              ],
              "role": "CISA Coordinator",
              "timestamp": "2026-06-08T15:42:59.352280Z",
              "version": "2.0.3"
            }
          }
        ]
      },
      "published": "2026-06-08T15:16:46.290",
      "references": [
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "tags": [
            "Patch",
            "Third Party Advisory"
          ],
          "url": "https://cna.erlef.org/cves/CVE-2026-43972.html"
        },
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "tags": [
            "Patch"
          ],
          "url": "https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676"
        },
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "url": "https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3"
        },
        {
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "tags": [
            "Third Party Advisory"
          ],
          "url": "https://osv.dev/vulnerability/EEF-CVE-2026-43972"
        }
      ],
      "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "vulnStatus": "Modified",
      "weaknesses": [
        {
          "description": [
            {
              "lang": "en",
              "value": "CWE-346"
            }
          ],
          "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
          "type": "Secondary"
        }
      ]
    }

    CVE-2026-43974 (GCVE-0-2026-43974)

    Vulnerability from nvd – Published: 2026-06-08 14:12 – Updated: 2026-11-20 06:44
    VLAI
    Title
    gun HTTP/1.1 client accepts unsolicited 101 Switching Protocols response allowing server-driven protocol hijack and OOM
    Summary
    Unexpected Status Code or Return Value vulnerability in ninenines gun (gun_http module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response. In gun_http:handle_inform/8, when a 101 Switching Protocols response is received over HTTP/1.1, the function verifies only that the Upgrade header is syntactically valid and that the stream reference is a plain reference(). It does not check whether the client ever sent an Upgrade or Connection: upgrade header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a gun_upgrade message to the caller and transition the entire connection to raw protocol mode. A malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, gun_raw applies no flow control (flow=infinity) and re-arms socket active mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded gun_data messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM. This issue affects gun: from 2.0.0-pre.1 before 2.4.0.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-06-08 15:41 UTC
    CWE
    • CWE-841 - Improper Enforcement of Behavioral Workflow
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 364 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ninenines gun Affected: 2.0.0-pre.1 , < 2.4.0 (semver)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ninenines gun Affected: a3c2edbb8c807717e2f10520c6cf1e77a62eab2e , < 5b48068c29ce5e112cb149b5857c7d4dc319a81b (git)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-06-08 14:12
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-43974",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-06-08T15:41:42.657559Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-06-08T15:41:49.498Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "gun",
              "packageURL": "pkg:hex/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle_head/4"
                },
                {
                  "name": "gun_http:handle_inform/7"
                },
                {
                  "name": "gun_http:handle_inform/8"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "2.4.0",
                  "status": "affected",
                  "version": "2.0.0-pre.1",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "ninenines/gun",
              "packageURL": "pkg:github/ninenines/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle_head/4"
                },
                {
                  "name": "gun_http:handle_inform/7"
                },
                {
                  "name": "gun_http:handle_inform/8"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "5b48068c29ce5e112cb149b5857c7d4dc319a81b",
                  "status": "affected",
                  "version": "a3c2edbb8c807717e2f10520c6cf1e77a62eab2e",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.4.0",
                      "versionStartIncluding": "2.0.0-pre.1",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Lo\u00efc Hoguin"
            }
          ],
          "datePublic": "2026-06-08T14:12:36.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUnexpected Status Code or Return Value vulnerability in ninenines gun (\u003ccode\u003egun_http\u003c/code\u003e module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response.\u003c/p\u003e\n\u003cp\u003eIn \u003ccode\u003egun_http:handle_inform/8\u003c/code\u003e, when a \u003ccode\u003e101 Switching Protocols\u003c/code\u003e response is received over HTTP/1.1, the function verifies only that the \u003ccode\u003eUpgrade\u003c/code\u003e header is syntactically valid and that the stream reference is a plain \u003ccode\u003ereference()\u003c/code\u003e. It does not check whether the client ever sent an \u003ccode\u003eUpgrade\u003c/code\u003e or \u003ccode\u003eConnection: upgrade\u003c/code\u003e header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a \u003ccode\u003egun_upgrade\u003c/code\u003e message to the caller and transition the entire connection to raw protocol mode.\u003c/p\u003e\n\u003cp\u003eA malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, \u003ccode\u003egun_raw\u003c/code\u003e applies no flow control (\u003ccode\u003eflow=infinity\u003c/code\u003e) and re-arms socket \u003ccode\u003eactive\u003c/code\u003e mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded \u003ccode\u003egun_data\u003c/code\u003e messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM.\u003c/p\u003e\n\u003cp\u003eThis issue affects gun: from 2.0.0-pre.1 before 2.4.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Unexpected Status Code or Return Value vulnerability in ninenines gun (`gun_http` module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response.\n\nIn `gun_http:handle_inform/8`, when a `101 Switching Protocols` response is received over HTTP/1.1, the function verifies only that the `Upgrade` header is syntactically valid and that the stream reference is a plain `reference()`. It does not check whether the client ever sent an `Upgrade` or `Connection: upgrade` header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a `gun_upgrade` message to the caller and transition the entire connection to raw protocol mode.\n\nA malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, `gun_raw` applies no flow control (`flow=infinity`) and re-arms socket `active` mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded `gun_data` messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM.\n\nThis issue affects gun: from 2.0.0-pre.1 before 2.4.0."
                }
              ],
              "value": "Unexpected Status Code or Return Value vulnerability in ninenines gun (gun_http module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response.\n\nIn gun_http:handle_inform/8, when a 101 Switching Protocols response is received over HTTP/1.1, the function verifies only that the Upgrade header is syntactically valid and that the stream reference is a plain reference(). It does not check whether the client ever sent an Upgrade or Connection: upgrade header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a gun_upgrade message to the caller and transition the entire connection to raw protocol mode.\n\nA malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, gun_raw applies no flow control (flow=infinity) and re-arms socket active mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded gun_data messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM.\n\nThis issue affects gun: from 2.0.0-pre.1 before 2.4.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-220",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-220 Client-Server Protocol Manipulation"
                }
              ]
            },
            {
              "capecId": "CAPEC-130",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-130 Excessive Allocation"
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-841",
                  "description": "CWE-841 Improper Enforcement of Behavioral Workflow",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-20T06:44:12.030Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "EEF CNA record for CVE-2026-43974",
              "tags": [
                "related",
                "third-party-advisory"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-43974.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-43974",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-43974"
            },
            {
              "name": "Introducing commit a3c2edb in ninenines/gun",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ninenines/gun/commit/a3c2edbb8c807717e2f10520c6cf1e77a62eab2e"
            },
            {
              "name": "Fix commit 5b48068 in ninenines/gun",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ninenines/gun/commit/5b48068c29ce5e112cb149b5857c7d4dc319a81b"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "gun HTTP/1.1 client accepts unsolicited 101 Switching Protocols response allowing server-driven protocol hijack and OOM"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-43974",
        "datePublished": "2026-06-08T14:12:36.957Z",
        "dateReserved": "2026-05-04T18:23:25.574Z",
        "dateUpdated": "2026-11-20T06:44:12.030Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-43973 (GCVE-0-2026-43973)

    Vulnerability from nvd – Published: 2026-06-08 14:12 – Updated: 2026-11-20 06:42
    VLAI
    Title
    gun HTTP/1.1 response buffer has no size limit allowing server-controlled memory exhaustion
    Summary
    Uncontrolled Resource Consumption vulnerability in ninenines gun (gun_http module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering. In gun_http:handle/5, three clauses accumulate incoming TCP data into the connection's buffer field using binary concatenation with no upper-bound check: the head clause appends data until the \r\n\r\n header terminator is found; the body_chunked clause appends data whenever cow_http_te:stream_chunked/2 returns a more result indicating an incomplete chunk boundary; and the body_trailer clause appends data until the trailing \r\n\r\n is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size. A malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with HTTP/1.1 200 OK\r\nX-Pad: followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash. This issue affects gun: from 1.0.0-pre.1 before 2.4.0.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-06-08 15:48 UTC
    CWE
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 364 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ninenines gun Affected: 1.0.0-pre.1 , < 2.4.0 (semver)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ninenines gun Affected: 11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f , < f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25 (git)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-06-08 14:12
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-43973",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-06-08T15:48:05.292583Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-06-08T15:48:12.581Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "gun",
              "packageURL": "pkg:hex/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle/2"
                },
                {
                  "name": "gun_http:handle/4"
                },
                {
                  "name": "gun_http:handle/5"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "2.4.0",
                  "status": "affected",
                  "version": "1.0.0-pre.1",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "ninenines/gun",
              "packageURL": "pkg:github/ninenines/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle/2"
                },
                {
                  "name": "gun_http:handle/4"
                },
                {
                  "name": "gun_http:handle/5"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25",
                  "status": "affected",
                  "version": "11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.4.0",
                      "versionStartIncluding": "1.0.0-pre.1",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Lo\u00efc Hoguin"
            }
          ],
          "datePublic": "2026-06-08T14:12:42.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUncontrolled Resource Consumption vulnerability in ninenines gun (\u003ccode\u003egun_http\u003c/code\u003e module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering.\u003c/p\u003e\n\u003cp\u003eIn \u003ccode\u003egun_http:handle/5\u003c/code\u003e, three clauses accumulate incoming TCP data into the connection\u0027s \u003ccode\u003ebuffer\u003c/code\u003e field using binary concatenation with no upper-bound check: the \u003ccode\u003ehead\u003c/code\u003e clause appends data until the \u003ccode\u003e\\r\\n\\r\\n\u003c/code\u003e header terminator is found; the \u003ccode\u003ebody_chunked\u003c/code\u003e clause appends data whenever \u003ccode\u003ecow_http_te:stream_chunked/2\u003c/code\u003e returns a \u003ccode\u003emore\u003c/code\u003e result indicating an incomplete chunk boundary; and the \u003ccode\u003ebody_trailer\u003c/code\u003e clause appends data until the trailing \u003ccode\u003e\\r\\n\\r\\n\u003c/code\u003e is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size.\u003c/p\u003e\n\u003cp\u003eA malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with \u003ccode\u003eHTTP/1.1 200 OK\\r\\nX-Pad: \u003c/code\u003e followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash.\u003c/p\u003e\n\u003cp\u003eThis issue affects gun: from 1.0.0-pre.1 before 2.4.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Uncontrolled Resource Consumption vulnerability in ninenines gun (`gun_http` module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering.\n\nIn `gun_http:handle/5`, three clauses accumulate incoming TCP data into the connection\u0027s `buffer` field using binary concatenation with no upper-bound check: the `head` clause appends data until the `\\r\\n\\r\\n` header terminator is found; the `body_chunked` clause appends data whenever `cow_http_te:stream_chunked/2` returns a `more` result indicating an incomplete chunk boundary; and the `body_trailer` clause appends data until the trailing `\\r\\n\\r\\n` is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size.\n\nA malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with `HTTP/1.1 200 OK\\r\\nX-Pad: ` followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash.\n\nThis issue affects gun: from 1.0.0-pre.1 before 2.4.0."
                }
              ],
              "value": "Uncontrolled Resource Consumption vulnerability in ninenines gun (gun_http module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering.\n\nIn gun_http:handle/5, three clauses accumulate incoming TCP data into the connection\u0027s buffer field using binary concatenation with no upper-bound check: the head clause appends data until the \\r\\n\\r\\n header terminator is found; the body_chunked clause appends data whenever cow_http_te:stream_chunked/2 returns a more result indicating an incomplete chunk boundary; and the body_trailer clause appends data until the trailing \\r\\n\\r\\n is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size.\n\nA malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with HTTP/1.1 200 OK\\r\\nX-Pad:  followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash.\n\nThis issue affects gun: from 1.0.0-pre.1 before 2.4.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-130",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-130 Excessive Allocation"
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770 Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-20T06:42:30.715Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "EEF CNA record for CVE-2026-43973",
              "tags": [
                "related",
                "third-party-advisory"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-43973.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-43973",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-43973"
            },
            {
              "name": "Introducing commit 11dfe71 in ninenines/gun",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ninenines/gun/commit/11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f"
            },
            {
              "name": "Fix commit f3e7e05 in ninenines/gun",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ninenines/gun/commit/f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "gun HTTP/1.1 response buffer has no size limit allowing server-controlled memory exhaustion"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-43973",
        "datePublished": "2026-06-08T14:12:42.128Z",
        "dateReserved": "2026-05-04T18:23:25.574Z",
        "dateUpdated": "2026-11-20T06:42:30.715Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-43972 (GCVE-0-2026-43972)

    Vulnerability from nvd – Published: 2026-06-08 14:12 – Updated: 2026-11-20 06:39
    VLAI
    Title
    gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection
    Summary
    Origin Validation Error vulnerability in ninenines gun (gun_http2 module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority. In gun_http2:push_promise_frame/7, the :authority pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection's origin. When gun_http2:headers_frame/9 later processes the response headers for the promised stream, it calls gun_cookies:set_cookie_header/7 with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 §10.6 / RFC 9113 §8.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for. A malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client's shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required. This issue affects gun: from 2.0.0-pre.2 before 2.4.0.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-06-08 15:42 UTC
    CWE
    • CWE-346 - Origin Validation Error
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 364 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ninenines gun Affected: 2.0.0-pre.2 , < 2.4.0 (semver)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ninenines gun Affected: 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3 , < 567863ff53802fed21c3b3f25812db7f7ae29676 (git)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-06-08 14:12
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-43972",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-06-08T15:42:59.352280Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-06-08T15:43:06.577Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http2"
              ],
              "packageName": "gun",
              "packageURL": "pkg:hex/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http2.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http2:push_promise_frame/7"
                },
                {
                  "name": "gun_http2:headers_frame/8"
                },
                {
                  "name": "gun_http2:headers_frame/9"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "2.4.0",
                  "status": "affected",
                  "version": "2.0.0-pre.2",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http2"
              ],
              "packageName": "ninenines/gun",
              "packageURL": "pkg:github/ninenines/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http2.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http2:push_promise_frame/7"
                },
                {
                  "name": "gun_http2:headers_frame/8"
                },
                {
                  "name": "gun_http2:headers_frame/9"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "567863ff53802fed21c3b3f25812db7f7ae29676",
                  "status": "affected",
                  "version": "87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe vulnerability is exploitable only when gun is configured with a \u003ccode\u003ecookie_store\u003c/code\u003e and connects to an HTTP/2 server with server push enabled.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The vulnerability is exploitable only when gun is configured with a `cookie_store` and connects to an HTTP/2 server with server push enabled."
                }
              ],
              "value": "The vulnerability is exploitable only when gun is configured with a cookie_store and connects to an HTTP/2 server with server push enabled."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.4.0",
                      "versionStartIncluding": "2.0.0-pre.2",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Lo\u00efc Hoguin"
            }
          ],
          "datePublic": "2026-06-08T14:12:38.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eOrigin Validation Error vulnerability in ninenines gun (\u003ccode\u003egun_http2\u003c/code\u003e module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.\u003c/p\u003e\n\u003cp\u003eIn \u003ccode\u003egun_http2:push_promise_frame/7\u003c/code\u003e, the \u003ccode\u003e:authority\u003c/code\u003e pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection\u0027s origin. When \u003ccode\u003egun_http2:headers_frame/9\u003c/code\u003e later processes the response headers for the promised stream, it calls \u003ccode\u003egun_cookies:set_cookie_header/7\u003c/code\u003e with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 \u00a710.6 / RFC 9113 \u00a78.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for.\u003c/p\u003e\n\u003cp\u003eA malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client\u0027s shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required.\u003c/p\u003e\n\u003cp\u003eThis issue affects gun: from 2.0.0-pre.2 before 2.4.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Origin Validation Error vulnerability in ninenines gun (`gun_http2` module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.\n\nIn `gun_http2:push_promise_frame/7`, the `:authority` pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection\u0027s origin. When `gun_http2:headers_frame/9` later processes the response headers for the promised stream, it calls `gun_cookies:set_cookie_header/7` with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 \u00a710.6 / RFC 9113 \u00a78.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for.\n\nA malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client\u0027s shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required.\n\nThis issue affects gun: from 2.0.0-pre.2 before 2.4.0."
                }
              ],
              "value": "Origin Validation Error vulnerability in ninenines gun (gun_http2 module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.\n\nIn gun_http2:push_promise_frame/7, the :authority pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection\u0027s origin. When gun_http2:headers_frame/9 later processes the response headers for the promised stream, it calls gun_cookies:set_cookie_header/7 with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 \u00a710.6 / RFC 9113 \u00a78.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for.\n\nA malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client\u0027s shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required.\n\nThis issue affects gun: from 2.0.0-pre.2 before 2.4.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-61",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-61 Session Fixation"
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "LOW",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-346",
                  "description": "CWE-346 Origin Validation Error",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-20T06:39:37.773Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "EEF CNA record for CVE-2026-43972",
              "tags": [
                "related",
                "third-party-advisory"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-43972.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-43972",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-43972"
            },
            {
              "name": "Introducing commit 87d0bff in ninenines/gun",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3"
            },
            {
              "name": "Fix commit 567863f in ninenines/gun",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-43972",
        "datePublished": "2026-06-08T14:12:38.780Z",
        "dateReserved": "2026-05-04T18:23:25.574Z",
        "dateUpdated": "2026-11-20T06:39:37.773Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-43973 (GCVE-0-2026-43973)

    Vulnerability from cvelistv5 – Published: 2026-06-08 14:12 – Updated: 2026-11-20 06:42
    VLAI
    Title
    gun HTTP/1.1 response buffer has no size limit allowing server-controlled memory exhaustion
    Summary
    Uncontrolled Resource Consumption vulnerability in ninenines gun (gun_http module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering. In gun_http:handle/5, three clauses accumulate incoming TCP data into the connection's buffer field using binary concatenation with no upper-bound check: the head clause appends data until the \r\n\r\n header terminator is found; the body_chunked clause appends data whenever cow_http_te:stream_chunked/2 returns a more result indicating an incomplete chunk boundary; and the body_trailer clause appends data until the trailing \r\n\r\n is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size. A malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with HTTP/1.1 200 OK\r\nX-Pad: followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash. This issue affects gun: from 1.0.0-pre.1 before 2.4.0.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-06-08 15:48 UTC
    CWE
    • CWE-770 - Allocation of Resources Without Limits or Throttling
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 364 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ninenines gun Affected: 1.0.0-pre.1 , < 2.4.0 (semver)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ninenines gun Affected: 11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f , < f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25 (git)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-06-08 14:12
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-43973",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-06-08T15:48:05.292583Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-06-08T15:48:12.581Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "gun",
              "packageURL": "pkg:hex/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle/2"
                },
                {
                  "name": "gun_http:handle/4"
                },
                {
                  "name": "gun_http:handle/5"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "2.4.0",
                  "status": "affected",
                  "version": "1.0.0-pre.1",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "ninenines/gun",
              "packageURL": "pkg:github/ninenines/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle/2"
                },
                {
                  "name": "gun_http:handle/4"
                },
                {
                  "name": "gun_http:handle/5"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25",
                  "status": "affected",
                  "version": "11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.4.0",
                      "versionStartIncluding": "1.0.0-pre.1",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Lo\u00efc Hoguin"
            }
          ],
          "datePublic": "2026-06-08T14:12:42.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUncontrolled Resource Consumption vulnerability in ninenines gun (\u003ccode\u003egun_http\u003c/code\u003e module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering.\u003c/p\u003e\n\u003cp\u003eIn \u003ccode\u003egun_http:handle/5\u003c/code\u003e, three clauses accumulate incoming TCP data into the connection\u0027s \u003ccode\u003ebuffer\u003c/code\u003e field using binary concatenation with no upper-bound check: the \u003ccode\u003ehead\u003c/code\u003e clause appends data until the \u003ccode\u003e\\r\\n\\r\\n\u003c/code\u003e header terminator is found; the \u003ccode\u003ebody_chunked\u003c/code\u003e clause appends data whenever \u003ccode\u003ecow_http_te:stream_chunked/2\u003c/code\u003e returns a \u003ccode\u003emore\u003c/code\u003e result indicating an incomplete chunk boundary; and the \u003ccode\u003ebody_trailer\u003c/code\u003e clause appends data until the trailing \u003ccode\u003e\\r\\n\\r\\n\u003c/code\u003e is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size.\u003c/p\u003e\n\u003cp\u003eA malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with \u003ccode\u003eHTTP/1.1 200 OK\\r\\nX-Pad: \u003c/code\u003e followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash.\u003c/p\u003e\n\u003cp\u003eThis issue affects gun: from 1.0.0-pre.1 before 2.4.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Uncontrolled Resource Consumption vulnerability in ninenines gun (`gun_http` module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering.\n\nIn `gun_http:handle/5`, three clauses accumulate incoming TCP data into the connection\u0027s `buffer` field using binary concatenation with no upper-bound check: the `head` clause appends data until the `\\r\\n\\r\\n` header terminator is found; the `body_chunked` clause appends data whenever `cow_http_te:stream_chunked/2` returns a `more` result indicating an incomplete chunk boundary; and the `body_trailer` clause appends data until the trailing `\\r\\n\\r\\n` is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size.\n\nA malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with `HTTP/1.1 200 OK\\r\\nX-Pad: ` followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash.\n\nThis issue affects gun: from 1.0.0-pre.1 before 2.4.0."
                }
              ],
              "value": "Uncontrolled Resource Consumption vulnerability in ninenines gun (gun_http module) allows a malicious server to exhaust client memory via unbounded HTTP/1.1 response buffering.\n\nIn gun_http:handle/5, three clauses accumulate incoming TCP data into the connection\u0027s buffer field using binary concatenation with no upper-bound check: the head clause appends data until the \\r\\n\\r\\n header terminator is found; the body_chunked clause appends data whenever cow_http_te:stream_chunked/2 returns a more result indicating an incomplete chunk boundary; and the body_trailer clause appends data until the trailing \\r\\n\\r\\n is found. In each case, when the expected terminator never arrives, the enlarged binary is stored back into state and the process waits for more data, with no configurable or hard-coded ceiling on buffer size.\n\nA malicious or compromised server can exploit this by sending a partial response that never completes. For example, a response may begin with HTTP/1.1 200 OK\\r\\nX-Pad:  followed by an unbounded stream of arbitrary bytes, never sending the header terminator. The gun connection process will continuously append the incoming data to its buffer, causing unbounded heap growth. Because BEAM imposes no per-process heap limit by default, a single malicious connection can exhaust all available memory on the node, causing a node-wide out-of-memory crash.\n\nThis issue affects gun: from 1.0.0-pre.1 before 2.4.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-130",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-130 Excessive Allocation"
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-770",
                  "description": "CWE-770 Allocation of Resources Without Limits or Throttling",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-20T06:42:30.715Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "EEF CNA record for CVE-2026-43973",
              "tags": [
                "related",
                "third-party-advisory"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-43973.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-43973",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-43973"
            },
            {
              "name": "Introducing commit 11dfe71 in ninenines/gun",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ninenines/gun/commit/11dfe71f4b9aedaaedea2ad3b2f32fd006a8480f"
            },
            {
              "name": "Fix commit f3e7e05 in ninenines/gun",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ninenines/gun/commit/f3e7e0568b3c4cf9fa4bea79d5116e67ce76ad25"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "gun HTTP/1.1 response buffer has no size limit allowing server-controlled memory exhaustion"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-43973",
        "datePublished": "2026-06-08T14:12:42.128Z",
        "dateReserved": "2026-05-04T18:23:25.574Z",
        "dateUpdated": "2026-11-20T06:42:30.715Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-43972 (GCVE-0-2026-43972)

    Vulnerability from cvelistv5 – Published: 2026-06-08 14:12 – Updated: 2026-11-20 06:39
    VLAI
    Title
    gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection
    Summary
    Origin Validation Error vulnerability in ninenines gun (gun_http2 module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority. In gun_http2:push_promise_frame/7, the :authority pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection's origin. When gun_http2:headers_frame/9 later processes the response headers for the promised stream, it calls gun_cookies:set_cookie_header/7 with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 §10.6 / RFC 9113 §8.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for. A malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client's shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required. This issue affects gun: from 2.0.0-pre.2 before 2.4.0.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-06-08 15:42 UTC
    CWE
    • CWE-346 - Origin Validation Error
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 364 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ninenines gun Affected: 2.0.0-pre.2 , < 2.4.0 (semver)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ninenines gun Affected: 87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3 , < 567863ff53802fed21c3b3f25812db7f7ae29676 (git)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-06-08 14:12
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-43972",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-06-08T15:42:59.352280Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-06-08T15:43:06.577Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http2"
              ],
              "packageName": "gun",
              "packageURL": "pkg:hex/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http2.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http2:push_promise_frame/7"
                },
                {
                  "name": "gun_http2:headers_frame/8"
                },
                {
                  "name": "gun_http2:headers_frame/9"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "2.4.0",
                  "status": "affected",
                  "version": "2.0.0-pre.2",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http2"
              ],
              "packageName": "ninenines/gun",
              "packageURL": "pkg:github/ninenines/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http2.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http2:push_promise_frame/7"
                },
                {
                  "name": "gun_http2:headers_frame/8"
                },
                {
                  "name": "gun_http2:headers_frame/9"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "567863ff53802fed21c3b3f25812db7f7ae29676",
                  "status": "affected",
                  "version": "87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3",
                  "versionType": "git"
                }
              ]
            }
          ],
          "configurations": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eThe vulnerability is exploitable only when gun is configured with a \u003ccode\u003ecookie_store\u003c/code\u003e and connects to an HTTP/2 server with server push enabled.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "The vulnerability is exploitable only when gun is configured with a `cookie_store` and connects to an HTTP/2 server with server push enabled."
                }
              ],
              "value": "The vulnerability is exploitable only when gun is configured with a cookie_store and connects to an HTTP/2 server with server push enabled."
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.4.0",
                      "versionStartIncluding": "2.0.0-pre.2",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Lo\u00efc Hoguin"
            }
          ],
          "datePublic": "2026-06-08T14:12:38.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eOrigin Validation Error vulnerability in ninenines gun (\u003ccode\u003egun_http2\u003c/code\u003e module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.\u003c/p\u003e\n\u003cp\u003eIn \u003ccode\u003egun_http2:push_promise_frame/7\u003c/code\u003e, the \u003ccode\u003e:authority\u003c/code\u003e pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection\u0027s origin. When \u003ccode\u003egun_http2:headers_frame/9\u003c/code\u003e later processes the response headers for the promised stream, it calls \u003ccode\u003egun_cookies:set_cookie_header/7\u003c/code\u003e with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 \u00a710.6 / RFC 9113 \u00a78.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for.\u003c/p\u003e\n\u003cp\u003eA malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client\u0027s shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required.\u003c/p\u003e\n\u003cp\u003eThis issue affects gun: from 2.0.0-pre.2 before 2.4.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Origin Validation Error vulnerability in ninenines gun (`gun_http2` module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.\n\nIn `gun_http2:push_promise_frame/7`, the `:authority` pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection\u0027s origin. When `gun_http2:headers_frame/9` later processes the response headers for the promised stream, it calls `gun_cookies:set_cookie_header/7` with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 \u00a710.6 / RFC 9113 \u00a78.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for.\n\nA malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client\u0027s shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required.\n\nThis issue affects gun: from 2.0.0-pre.2 before 2.4.0."
                }
              ],
              "value": "Origin Validation Error vulnerability in ninenines gun (gun_http2 module) allows cross-origin cookie injection via unvalidated HTTP/2 PUSH_PROMISE authority.\n\nIn gun_http2:push_promise_frame/7, the :authority pseudo-header from an incoming PUSH_PROMISE frame is stored verbatim into the promised stream record without checking that it matches the connection\u0027s origin. When gun_http2:headers_frame/9 later processes the response headers for the promised stream, it calls gun_cookies:set_cookie_header/7 with the unvalidated server-supplied authority before any status branching and before user code can act. This violates RFC 7540 \u00a710.6 / RFC 9113 \u00a78.4, which require receivers to treat as a protocol error any push for a resource the server is not authoritative for.\n\nA malicious or compromised HTTP/2 server can plant cookies scoped to arbitrary third-party domains into the client\u0027s shared cookie store. This enables session fixation attacks against those domains and, if the planted cookie overrides a legitimate session token, may result in account takeover. No user interaction beyond making a normal HTTP/2 request to the attacker-controlled server is required.\n\nThis issue affects gun: from 2.0.0-pre.2 before 2.4.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-61",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-61 Session Fixation"
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "PRESENT",
                "attackVector": "NETWORK",
                "baseScore": 6.3,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "LOW",
                "subIntegrityImpact": "LOW",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "LOW",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-346",
                  "description": "CWE-346 Origin Validation Error",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-20T06:39:37.773Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "EEF CNA record for CVE-2026-43972",
              "tags": [
                "related",
                "third-party-advisory"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-43972.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-43972",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-43972"
            },
            {
              "name": "Introducing commit 87d0bff in ninenines/gun",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ninenines/gun/commit/87d0bfff926892d2dc0a55a3dc45d8c5f8a682f3"
            },
            {
              "name": "Fix commit 567863f in ninenines/gun",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ninenines/gun/commit/567863ff53802fed21c3b3f25812db7f7ae29676"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "gun HTTP/2 PUSH_PROMISE authority not validated against connection origin allows cross-origin cookie injection"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-43972",
        "datePublished": "2026-06-08T14:12:38.780Z",
        "dateReserved": "2026-05-04T18:23:25.574Z",
        "dateUpdated": "2026-11-20T06:39:37.773Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-43974 (GCVE-0-2026-43974)

    Vulnerability from cvelistv5 – Published: 2026-06-08 14:12 – Updated: 2026-11-20 06:44
    VLAI
    Title
    gun HTTP/1.1 client accepts unsolicited 101 Switching Protocols response allowing server-driven protocol hijack and OOM
    Summary
    Unexpected Status Code or Return Value vulnerability in ninenines gun (gun_http module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response. In gun_http:handle_inform/8, when a 101 Switching Protocols response is received over HTTP/1.1, the function verifies only that the Upgrade header is syntactically valid and that the stream reference is a plain reference(). It does not check whether the client ever sent an Upgrade or Connection: upgrade header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a gun_upgrade message to the caller and transition the entire connection to raw protocol mode. A malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, gun_raw applies no flow control (flow=infinity) and re-arms socket active mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded gun_data messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM. This issue affects gun: from 2.0.0-pre.1 before 2.4.0.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-06-08 15:41 UTC
    CWE
    • CWE-841 - Improper Enforcement of Behavioral Workflow
    Assigner
    EEF CNA under the mitre root
    CNA scorecard A 97/100 over 364 records in the last 180 days details
    Impacted products
    Vendor Product Version
    ninenines gun Affected: 2.0.0-pre.1 , < 2.4.0 (semver)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    ninenines gun Affected: a3c2edbb8c807717e2f10520c6cf1e77a62eab2e , < 5b48068c29ce5e112cb149b5857c7d4dc319a81b (git)
        cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Date Public
    2026-06-08 14:12
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-43974",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-06-08T15:41:42.657559Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-06-08T15:41:49.498Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://repo.hex.pm",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "gun",
              "packageURL": "pkg:hex/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle_head/4"
                },
                {
                  "name": "gun_http:handle_inform/7"
                },
                {
                  "name": "gun_http:handle_inform/8"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "2.4.0",
                  "status": "affected",
                  "version": "2.0.0-pre.1",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://github.com",
              "cpes": [
                "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*"
              ],
              "defaultStatus": "unaffected",
              "modules": [
                "gun_http"
              ],
              "packageName": "ninenines/gun",
              "packageURL": "pkg:github/ninenines/gun",
              "product": "gun",
              "programFiles": [
                "src/gun_http.erl"
              ],
              "programRoutines": [
                {
                  "name": "gun_http:handle_head/4"
                },
                {
                  "name": "gun_http:handle_inform/7"
                },
                {
                  "name": "gun_http:handle_inform/8"
                }
              ],
              "repo": "https://github.com/ninenines/gun",
              "vendor": "ninenines",
              "versions": [
                {
                  "lessThan": "5b48068c29ce5e112cb149b5857c7d4dc319a81b",
                  "status": "affected",
                  "version": "a3c2edbb8c807717e2f10520c6cf1e77a62eab2e",
                  "versionType": "git"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:a:ninenines:gun:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "2.4.0",
                      "versionStartIncluding": "2.0.0-pre.1",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ],
              "operator": "AND"
            }
          ],
          "credits": [
            {
              "lang": "en",
              "type": "finder",
              "value": "Peter Ullrich"
            },
            {
              "lang": "en",
              "type": "remediation developer",
              "value": "Lo\u00efc Hoguin"
            }
          ],
          "datePublic": "2026-06-08T14:12:36.000Z",
          "descriptions": [
            {
              "lang": "en",
              "supportingMedia": [
                {
                  "base64": false,
                  "type": "text/html",
                  "value": "\u003cp\u003eUnexpected Status Code or Return Value vulnerability in ninenines gun (\u003ccode\u003egun_http\u003c/code\u003e module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response.\u003c/p\u003e\n\u003cp\u003eIn \u003ccode\u003egun_http:handle_inform/8\u003c/code\u003e, when a \u003ccode\u003e101 Switching Protocols\u003c/code\u003e response is received over HTTP/1.1, the function verifies only that the \u003ccode\u003eUpgrade\u003c/code\u003e header is syntactically valid and that the stream reference is a plain \u003ccode\u003ereference()\u003c/code\u003e. It does not check whether the client ever sent an \u003ccode\u003eUpgrade\u003c/code\u003e or \u003ccode\u003eConnection: upgrade\u003c/code\u003e header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a \u003ccode\u003egun_upgrade\u003c/code\u003e message to the caller and transition the entire connection to raw protocol mode.\u003c/p\u003e\n\u003cp\u003eA malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, \u003ccode\u003egun_raw\u003c/code\u003e applies no flow control (\u003ccode\u003eflow=infinity\u003c/code\u003e) and re-arms socket \u003ccode\u003eactive\u003c/code\u003e mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded \u003ccode\u003egun_data\u003c/code\u003e messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM.\u003c/p\u003e\n\u003cp\u003eThis issue affects gun: from 2.0.0-pre.1 before 2.4.0.\u003c/p\u003e"
                },
                {
                  "base64": false,
                  "type": "text/markdown",
                  "value": "Unexpected Status Code or Return Value vulnerability in ninenines gun (`gun_http` module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response.\n\nIn `gun_http:handle_inform/8`, when a `101 Switching Protocols` response is received over HTTP/1.1, the function verifies only that the `Upgrade` header is syntactically valid and that the stream reference is a plain `reference()`. It does not check whether the client ever sent an `Upgrade` or `Connection: upgrade` header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a `gun_upgrade` message to the caller and transition the entire connection to raw protocol mode.\n\nA malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, `gun_raw` applies no flow control (`flow=infinity`) and re-arms socket `active` mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded `gun_data` messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM.\n\nThis issue affects gun: from 2.0.0-pre.1 before 2.4.0."
                }
              ],
              "value": "Unexpected Status Code or Return Value vulnerability in ninenines gun (gun_http module) allows a malicious HTTP server to force the client into raw protocol mode via an unsolicited 101 Switching Protocols response.\n\nIn gun_http:handle_inform/8, when a 101 Switching Protocols response is received over HTTP/1.1, the function verifies only that the Upgrade header is syntactically valid and that the stream reference is a plain reference(). It does not check whether the client ever sent an Upgrade or Connection: upgrade header on the corresponding request. Because this check is absent, any 101 response (solicited or not) causes gun to dispatch a gun_upgrade message to the caller and transition the entire connection to raw protocol mode.\n\nA malicious or compromised HTTP server can send an unsolicited 101 response to any HTTP/1.1 request, causing the gun client to abandon HTTP framing for that connection. Once in raw mode, gun_raw applies no flow control (flow=infinity) and re-arms socket active mode after every received packet, so the server can flood the client with arbitrary bytes. These are forwarded as unbounded gun_data messages to the owner process, exhausting its mailbox and BEAM memory, ultimately crashing the VM.\n\nThis issue affects gun: from 2.0.0-pre.1 before 2.4.0."
            }
          ],
          "impacts": [
            {
              "capecId": "CAPEC-220",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-220 Client-Server Protocol Manipulation"
                }
              ]
            },
            {
              "capecId": "CAPEC-130",
              "descriptions": [
                {
                  "lang": "en",
                  "value": "CAPEC-130 Excessive Allocation"
                }
              ]
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 8.7,
                "baseSeverity": "HIGH",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "NONE",
                "subIntegrityImpact": "NONE",
                "userInteraction": "NONE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "HIGH",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "format": "CVSS",
              "scenarios": [
                {
                  "lang": "en",
                  "value": "GENERAL"
                }
              ]
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-841",
                  "description": "CWE-841 Improper Enforcement of Behavioral Workflow",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-20T06:44:12.030Z",
            "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
            "shortName": "EEF"
          },
          "references": [
            {
              "name": "EEF CNA record for CVE-2026-43974",
              "tags": [
                "related",
                "third-party-advisory"
              ],
              "url": "https://cna.erlef.org/cves/CVE-2026-43974.html"
            },
            {
              "name": "OSV record EEF-CVE-2026-43974",
              "tags": [
                "related"
              ],
              "url": "https://osv.dev/vulnerability/EEF-CVE-2026-43974"
            },
            {
              "name": "Introducing commit a3c2edb in ninenines/gun",
              "tags": [
                "related"
              ],
              "url": "https://github.com/ninenines/gun/commit/a3c2edbb8c807717e2f10520c6cf1e77a62eab2e"
            },
            {
              "name": "Fix commit 5b48068 in ninenines/gun",
              "tags": [
                "patch"
              ],
              "url": "https://github.com/ninenines/gun/commit/5b48068c29ce5e112cb149b5857c7d4dc319a81b"
            }
          ],
          "source": {
            "discovery": "EXTERNAL"
          },
          "title": "gun HTTP/1.1 client accepts unsolicited 101 Switching Protocols response allowing server-driven protocol hijack and OOM"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "assignerShortName": "EEF",
        "cveId": "CVE-2026-43974",
        "datePublished": "2026-06-08T14:12:36.957Z",
        "dateReserved": "2026-05-04T18:23:25.574Z",
        "dateUpdated": "2026-11-20T06:44:12.030Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }