Live threats

All CVEs / Web Project

CVE-2021-4236Web Project Web

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
No
Published
Dec 27, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-476
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Web.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/ecnepsnai/web ≥ 1.4.0 < 1.5.2 1.5.2 go get github.com/ecnepsnai/web@v1.5.2
Go github.com/ecnepsnai/web ≥ 1.4.0 < 1.5.2 1.5.2 go get github.com/ecnepsnai/web@v1.5.2

Per OSV / GitHub Advisories (GHSA-5gjg-jgh4-gppm, GO-2021-0107). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
web_projectweb≥ 1.4.0 < 1.5.2

Official sources

References

Links published by the sources. Open them with care.