Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-4236

Web Sockets do not execute any AuthenticateMethod methods which may be set, leading to a nil pointer dereference if the returned UserData pointer is assumed to be non-nil, or authentication bypass. This issue only affects WebSockets with an AuthenticateMethod hook. Request handlers that do not explicitly use WebSockets are not vulnerable.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-4236
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:58 UTC · Revision 1

Source evidence

CVE-2021-4236

core-osv · Original source

Published 27 Dec 2022, 22:15 UTC

Web Sockets do not execute any AuthenticateMethod methods which may be set, leading to a nil pointer dereference if the returned UserData pointer is assumed to be non-nil, or authentication bypass. This issue only affects WebSockets with an AuthenticateMethod hook. Request handlers that do not explicitly use WebSockets are not vulnerable.

osv:CVE-2021-4236
Complete source record
{
  "id": "9e1511fb09be8736870b4a5b5ad7a6d757adc034c0b054a80f87f45e37ae5ebf",
  "url": "https://osv.dev/vulnerability/CVE-2021-4236",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-4236",
    "summary": "Web Sockets do not execute any AuthenticateMethod methods which may be set, leading to a nil pointer dereference if the returned UserData pointer is assumed to be non-nil, or authentication bypass. This issue only affects WebSockets with an AuthenticateMethod hook. Request handlers that do not explicitly use WebSockets are not vulnerable.",
    "evidence": "osv:CVE-2021-4236",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-4236",
      "aliases": [
        "CVE-2021-4236",
        "GHSA-5gjg-jgh4-gppm",
        "GHSA-jpgg-cp2x-qrw3",
        "GO-2021-0107"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ecnepsnai/web",
              "type": "GIT",
              "events": [
                {
                  "introduced": "44e6297e6edfd25cca373c37d68bbfe84fbb474c"
                },
                {
                  "fixed": "5a78f8d5c41ce60dcf9f61aaf47a7a8dc3e0002f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:web_project:web:*:*:*:*:*:go:*:*",
                    "range": [
                      {
                        "introduced": "1.4.0"
                      },
                      {
                        "fixed": "1.5.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "5a78f8d5c41ce60dcf9f61aaf47a7a8dc3e0002f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.5.1",
            "v1.5.0",
            "v1.4.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-4236.json"
          }
        }
      ],
      "modified": "2026-10-20T10:55:00.805132635Z",
      "provider": "osv",
      "references": [
        "https://github.com/ecnepsnai/web/commit/5a78f8d5c41ce60dcf9f61aaf47a7a8dc3e0002f",
        "https://pkg.go.dev/vuln/GO-2021-0107"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-4236",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 386677,
  "published_at": "2022-12-27T22:15:12.013+00:00"
}