Is github.com/gorilla/websocket 1.4 vulnerable?

Go · 3 releases from 1.4.0 to 1.4.2 · latest github.com/gorilla/websocket is 1.5.3 · checked 18 Nov 2026

Yes: 2 known advisories

Yes. github.com/gorilla/websocket 1.4.2, the last 1.4 release, is affected by 2 known security advisories (1 medium, 1 low). 2 more affect earlier 1.4.x releases. Upgrade to 1.5.3 or later to fix all of them.

Upgrade with:go get github.com/gorilla/websocket@v1.5.3

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

Advisories affecting github.com/gorilla/websocket 1.4.2

  • LowGO-2026-627825 Aug 2026

    Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key in github.com/gorilla/websocket

    Affected
    <1.5.3
    Fixed in
    1.5.3
  • MediumGHSA-w67g-5rqw-f59724 Aug 2026

    Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key

    Affected
    <1.5.3
    Fixed in
    1.5.3

Fixed within 1.4.x, affecting earlier releases

  • HighCVE-2020-27813GHSA-3xh2-74w9-5vxm18 May 2021

    Integer overflow in github.com/gorilla/websocket

    Affected
    <1.4.1
    Fixed in
    1.4.1
  • LowCVE-2020-27813GO-2020-001914 Apr 2021

    Integer overflow in github.com/gorilla/websocket

    Affected
    <1.4.1
    Fixed in
    1.4.1

Every github.com/gorilla/websocket 1.4.x release

Affected: 1.4.0 to 1.4.2. Latest github.com/gorilla/websocket: 1.5.3.

VersionKnown advisories
github.com/gorilla/websocket 1.4.2GO-2026-6278, GHSA-w67g-5rqw-f597
github.com/gorilla/websocket 1.4.1GO-2026-6278, GHSA-w67g-5rqw-f597
github.com/gorilla/websocket 1.4.0GO-2026-6278, GHSA-w67g-5rqw-f597, CVE-2020-27813, CVE-2020-27813

Which of your client projects are still on github.com/gorilla/websocket 1.4?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact github.com/gorilla/websocket version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other github.com/gorilla/websocket versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the Go registry. Refreshed daily.