CVE-2021-4236

published 27 Dec 2022 · updated 11 Apr 2025

Panic or authentication bypass in github.com/ecnepsnai/web

9.8CriticalCVSS 9.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.5.2.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
github.com/ecnepsnai/web>=1.4.0 <1.5.21.5.2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-4236 severity on Zeptric[![CVE-2021-4236](https://zeptric.io/badge/cve/CVE-2021-4236.svg)](https://zeptric.io/cve/CVE-2021-4236)