Skip to content
Fencer Vulns
critical 9.8

CVE-2021-4236 json

Panic or authentication bypass in github.com/ecnepsnai/web

published 2021-06-23 5 y ago modified 2026-06-17 4 mo ago also GHSA-5gjg-jgh4-gppm , GHSA-jpgg-cp2x-qrw3 , GO-2021-0107 , EUVD-2022-7668

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.2%
EPSS 1.2% chance of exploitation in 30 days, percentile 68%
public exploits
0
none known

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.

Patch / fix

  • go github.com/ecnepsnai/web 1.5.2
  • github.com/ecnepsnai/web github.com/ecnepsnai/web 1.5.2

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
18 mo ago

Exploit prediction

1.19% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • pkg.go.dev https://pkg.go.dev/vuln/GO-2021-0107 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
go github.com/ecnepsnai/web
>=1.4.0, <1.5.2
1.5.2

Affected products

  • github.com/ecnepsnai/web github.com/ecnepsnai/web

Classification

Weakness
  • CWE-476 NULL Pointer Dereference
  • CWE-304 Missing Critical Step in Authentication
  • CWE-400 Uncontrolled Resource Consumption

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.