cve.bz

CVE-2021-4236

9.8 criticalEPSS 1.2%

Critical (9.8) in web project web. EPSS 1.2% chance of exploitation in the next 30 days. Fixed in github.com/ecnepsnai/web 1.5.2.

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.

Severity

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
EPSS
1.2% chance of exploitation in the next 30 days; higher than 67% of CVEs (scores of 2026-10-31)
CWE
CWE-476
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-5gjg-jgh4-gppmGogithub.com/ecnepsnai/web>=1.4.0 <1.5.21.5.2
GO-2021-0107Gogithub.com/ecnepsnai/web>=1.4.0 <1.5.21.5.2

References

Check your stackJSON