{"id":"CVE-2021-4236","published":"2022-12-27T21:13:45Z","modified":"2025-04-11T16:20:55Z","title":"Panic or authentication bypass in github.com/ecnepsnai/web","vendor":"github.com/ecnepsnai/web","product":"github.com/ecnepsnai/web","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01191,"percentile":0.68735,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/ecnepsnai/web/commit/5a78f8d5c41ce60dcf9f61aaf47a7a8dc3e0002f","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2021-0107","tags":[]}],"priority":{"score":20.6,"factors":[{"name":"EPSS percentile","points":13.75},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"github-com-ecnepsnai-web","affectedVersions":[{"vendor":"github.com/ecnepsnai/web","product":"github.com/ecnepsnai/web","versions":[">= 1.4.0, < 1.5.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-11T16:20:37.403821Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/ecnepsnai/web","vulnerableRanges":[">=1.4.0, <1.5.2"],"patched":["1.5.2"],"from":["GHSA-5gjg-jgh4-gppm","GO-2021-0107"],"provenance":"source"}],"summary":{"text":"The flaw is in the github.com/ecnepsnai/web package, where WebSocket connections do not run the AuthenticateMethod hook that may be configured, which can cause a nil pointer dereference if the UserData result is assumed to be non-nil, or can bypass authentication. An attacker with network access can reach a WebSocket endpoint without any credentials or user interaction, but this only applies to WebSocket handlers that use an AuthenticateMethod hook; ordinary request handlers that do not use WebSockets are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:12:40Z"},"euvd":{"id":"EUVD-2022-7668","exploited":false,"provenance":"source"}}