{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-4236","id":"CVE-2021-4236","title":"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.","descriptionLong":"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.","published":"2022-12-27T21:13:45.711Z","updated":"2026-10-20T10:55:00.805132635Z","reserved":"2022-07-29T19:01:04.923Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["github.com/ecnepsnai/web"],"affectedProducts":[{"vendor":"github.com/ecnepsnai/web","product":"github.com/ecnepsnai/web","defaultStatus":"unaffected","versions":[{"version":"1.4.0","lessThan":"1.5.2","status":"affected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/ecnepsnai/web","purl":"pkg:golang/github.com/ecnepsnai/web","ranges":[">=1.4.0 <1.5.2"],"fixed":["1.5.2"],"advisory":"GHSA-5gjg-jgh4-gppm"}],"cwes":["CWE-400","CWE-476","CWE-304"],"aliases":["GHSA-5gjg-jgh4-gppm","GHSA-jpgg-cp2x-qrw3","GO-2021-0107"],"references":[{"url":"https://github.com/ecnepsnai/web/commit/5a78f8d5c41ce60dcf9f61aaf47a7a8dc3e0002f","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0107","tags":["x_transferred","Exploit","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/ecnepsnai/web/security/advisories/GHSA-5gjg-jgh4-gppm","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4236","tags":["advisory"]},{"url":"https://github.com/ecnepsnai/web","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.01191,"epssPercentile":0.68637,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-4236","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4236","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-4236","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5gjg-jgh4-gppm","ok":true,"note":"GHSA-5gjg-jgh4-gppm"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-jpgg-cp2x-qrw3","ok":true,"note":"GHSA-jpgg-cp2x-qrw3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-4236","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}