CVE-2021-4236
Panic or authentication bypass in github.com/ecnepsnai/web
9.8
CRITICAL
CVSS 3.1
EPSS 0.45%
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.
How to fix CVE-2021-4236
To remediate CVE-2021-4236, upgrade the affected package to a fixed version below.
- —upgrade to 1.5.2 or later
- —upgrade to 1.5.2 or later
- —upgrade to 1.5.2 or later
Is CVE-2021-4236 being exploited?
Low — EPSS is 0.5%, meaning exploitation activity has not been observed at scale.
Affected packages (3)
- >= 1.4.0, < 1.5.2
- >= 1.4.0, < 1.5.2
- >= 1.4.0, < 1.5.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |