Panic or authentication bypass in github.com/ecnepsnai/web
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-476.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| github.com/ecnepsnai/web | github.com/ecnepsnai/web | 1.4.0 to before 1.5.2 | 1.5.2 | Patch available | CNA |
| — | github.com/ecnepsnai/web (Go) | 1.4.0 to before 1.5.2 | 1.5.2 | Patch available | GHSA-5gjg-jgh4-gppm |
- github.com/ecnepsnai/web Vendorgithub.com/ecnepsnai/web Affected 1.4.0 to before 1.5.2 Fixed in 1.5.2 Patch available CNA
- github.com/ecnepsnai/web (Go) Vendor— Affected 1.4.0 to before 1.5.2 Fixed in 1.5.2 Patch available GHSA-5gjg-jgh4-gppm
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:web_project:web:*:*:*:*:*:go:*:* | 1.4.0 to before 1.5.2 | Vulnerable | Web Project |
- cpe:2.3:a:web_project:web:*:*:*:*:*:go:*:* Versions 1.4.0 to before 1.5.2 Vulnerable ·Web Project
Remediation
- Fix · CNA github.com/ecnepsnai/web (github.com/ecnepsnai/web) Fixed in 1.5.2
- Fix · GHSA-5gjg-jgh4-gppm github.com/ecnepsnai/web (Go) Fixed in 1.5.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-4236
- 2026-10-03 Alias added: GHSA-5gjg-jgh4-gppm
References
Sources
- CVE-2021-4236 · CVE Program
- CVE-2021-4236 · NVD
- FIRST EPSS
- GHSA-5gjg-jgh4-gppm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences