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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-23T17:26:30.000Z
- Modified: 2026-06-17T04:19:19.493Z
- Also known as: GHSA-5gjg-jgh4-gppm, GHSA-jpgg-cp2x-qrw3, GO-2021-0107
- Weaknesses: CWE-304, CWE-400, CWE-476
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- github.com/ecnepsnai/web: from 1.4.0 before 1.5.2
- github.com/ecnepsnai/web (Go): from 1.4.0 before 1.5.2
- web_project web: from 1.4.0 before 1.5.2

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://pkg.go.dev/vuln/GO-2021-0107> (exploit, patch, third-party-advisory, web)
- <https://github.com/ecnepsnai/web/commit/5a78f8d5c41ce60dcf9f61aaf47a7a8dc3e0002f> (fix, patch, third-party-advisory, web)
- <https://github.com/ecnepsnai/web/security/advisories/GHSA-5gjg-jgh4-gppm> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-4236> (advisory)
- <https://github.com/ecnepsnai/web> (package)

## Sources

- CVE List: [CVE-2021-4236](https://www.cve.org/CVERecord?id=CVE-2021-4236), CVE Terms of Use, modified 2025-04-11
- GitHub Advisory Database: [GHSA-5gjg-jgh4-gppm](https://github.com/advisories/GHSA-5gjg-jgh4-gppm), CC-BY-4.0, modified 2026-02-03
- GitHub Advisory Database: [GHSA-jpgg-cp2x-qrw3](https://github.com/advisories/GHSA-jpgg-cp2x-qrw3), CC-BY-4.0, modified 2026-02-03
- Go Vulnerability Database: [GO-2021-0107](https://pkg.go.dev/vuln/GO-2021-0107), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2021-4236](https://nvd.nist.gov/vuln/detail/CVE-2021-4236), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4236 · Whole record: https://cve.day/CVE-2021-4236.json · Rebuilt by cve.day 2026-11-25T22:58:08.019Z
