What’s Vulnerable › Vulnerabilities

CVE-2021-4236: Panic or authentication bypass in github.com/ecnepsnai/web

Description

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 products

How to fix

Upgrade to a fixed version: github.com/ecnepsnai/web 1.5.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-4236 or the next vulnerability affects your stack