CVE-2021-4236: Uncontrolled Resource Consumption in github.com/ecnepsnai/web

github.com/ecnepsnai/web Updated 02 Oct 2025

Summary

28/12/2022
Yes i
Critical
9.8

CVE-2021-4236: Web vulnerable to Uncontrolled Resource Consumption. Affects github.com/ecnepsnai/web versions >= 1.4.0, < 1.5.2. Fixed in 1.5.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

github.com/ecnepsnai/web is a Go package that provides a framework for building web applications. It includes features such as routing, request handling, and WebSocket support. The package is vulnerable to an issue where Web Sockets do not execute the AuthenticateMethod methods, leading to a nil pointer dereference or authentication bypass. This vulnerability affects WebSockets with an AuthenticateMethod hook, while request handlers that do not use WebSockets are not vulnerable.

Vulnerability Detail

The vulnerability arises from the failure to execute the AuthenticateMethod methods in Web Sockets. This can result in a nil pointer dereference if the returned UserData pointer is assumed to be non-nil, or it can lead to authentication bypass. The impact of this vulnerability can be severe, allowing unauthorized access or resource consumption. The vulnerability has a CVSS score of 9.8, indicating its criticality.

How To Fix

Latest published version: v1.14.0 as of 23 Oct 2026

go get github.com/ecnepsnai/web@v1.14.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.2

This is the first release that contains the fix.

go get github.com/ecnepsnai/web@v1.5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. It is recommended to apply the fix by updating to the latest version of the package.

Conclusion

The github.com/ecnepsnai/web package is vulnerable to an uncontrolled resource consumption issue in Web Sockets. This can result in a nil pointer dereference or authentication bypass. It is crucial to update to version 1.5.2 or later to mitigate this vulnerability. For further assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/ecnepsnai/web →

Share this vulnerability

FAQ

The vulnerability can lead to unauthorized access or resource consumption, potentially allowing attackers to bypass authentication mechanisms.

Versions 1.4.0 to 1.5.1 of the github.com/ecnepsnai/web package are affected by this vulnerability.

No, request handlers that do not use WebSockets are not vulnerable to this issue.

Yes, updating to version 1.5.2 or later of the package will fix this vulnerability.

The CVSS score of this vulnerability is 9.8, indicating its criticality.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/ecnepsnai/web.

How To Fix

Latest published version: v1.14.0 as of 23 Oct 2026

go get github.com/ecnepsnai/web@v1.14.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.2

This is the first release that contains the fix.

go get github.com/ecnepsnai/web@v1.5.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback