# GO-2026-6278 - Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key in github.com/gorilla/websocket

Source: https://junglewise.ai/threats/go-2026-6278-gorilla-websocket-uses-cryptographically-weak-prng-for-262c21c8  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-25  
License: CC BY 4.0 with a link back

Severity: info · Published 2026-08-25

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

Technologies: [github.com/gorilla/websocket (Go)](https://junglewise.ai/threats/technologies/github-com-gorilla-websocket). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Informational severity, published 25 August 2026.

**Which products and versions are affected?** github.com/gorilla/websocket (Go) SEMVER:introduced=0,fixed=1.5.3.

**Is there a fix for This vulnerability?** Yes. github.com/gorilla/websocket (Go): upgrade to 1.5.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run github.com/gorilla/websocket (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/gorilla/websocket (Go): upgrade to 1.5.3 or later

  ```sh
  go get github.com/gorilla/websocket@v1.5.3
  ```


## Affected products

- github.com/gorilla/websocket (Go) SEMVER:introduced=0,fixed=1.5.3

## Related threats

- [Gorilla WebSocket weak PRNG for mask key generation](https://junglewise.ai/threats/gorilla-websocket-weak-prng-for-mask-key-generation-0861bf09)
- [GO-2020-0019 - Integer overflow in github.com/gorilla/websocket](https://junglewise.ai/threats/cve-2020-27813-integer-overflow-in-github-com-gorilla-websocket)
