HighGHSA-3xh2-74w9-5vxmCVE-2020-27813GHSA-jf24-p9p9-4rjhGO-2020-0019

Integer overflow in github.com/gorilla/websocket

Published 18 May 2021 · Updated 8 Nov 2023

Is your project on an affected github.com/gorilla/websocket?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<1.4.1
Fixed in
1.4.1
Update to the fixed version for your release line, for example:go get github.com/gorilla/websocket@v1.4.1

Details

An integer overflow vulnerability exists with the length of websocket frames received via a websocket connection. An attacker would use this flaw to cause a denial of service attack on an HTTP Server allowing websocket connections.

Is GHSA-3xh2-74w9-5vxm in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/gorilla/websocket, and gives you the command that fixes it.

More advisories for github.com/gorilla/websocket

  • LowGO-2026-6278Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key in github.com/gorilla/websocket · 25 Aug 2026
  • MediumGHSA-w67g-5rqw-f597Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key · 24 Aug 2026
github.com/gorilla/websocket security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.