Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ecnepsnai/web
  4. ›
  5. CVE-2021-4236

CVE-2021-4236: Websocket requests did not call AuthenticateMethod

June 23, 2021 (updated January 23, 2026)

Depending on implementation, a denial-of-service or privilege escalation vulnerability may occur in software that uses the github.com/ecnepsnai/web package with Web Sockets that have an AuthenticateMethod.

The AuthenticateMethod is not called, and UserData will be nil in request methods. Attempts to read the UserData may result in a panic.

This issue only affects web sockets where an AuthenticateMethod is supplied to the handle options. Users who do not use web sockets, or users who do not require authentication are not at risk.

References

  • github.com/advisories/GHSA-5gjg-jgh4-gppm
  • github.com/ecnepsnai/web
  • github.com/ecnepsnai/web/commit/5a78f8d5c41ce60dcf9f61aaf47a7a8dc3e0002f
  • github.com/ecnepsnai/web/security/advisories/GHSA-5gjg-jgh4-gppm
  • nvd.nist.gov/vuln/detail/CVE-2021-4236
  • pkg.go.dev/vuln/GO-2021-0107

Code Behaviors & Features

Detect and mitigate CVE-2021-4236 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.4.0 before 1.5.2

Fixed versions

  • 1.5.2

Solution

Upgrade to version 1.5.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-304: Missing Critical Step in Authentication
  • CWE-400: Uncontrolled Resource Consumption
  • CWE-476: NULL Pointer Dereference

Source file

go/github.com/ecnepsnai/web/CVE-2021-4236.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 05 Feb 2026 00:17:23 +0000.