{"answers":{"affected":"3 open source packages ship an affected version, including github.com/gorilla/websocket.","exploited":"There is no known exploitation of GHSA-w67g-5rqw-f597 in the wild and no public exploit code.","fix":"Upgrade github.com/gorilla/websocket to 1.5.3 or later.","what":"GHSA-w67g-5rqw-f597 is a vulnerability in github.com/gorilla/websocket, published on 24 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-w67g-5rqw-f597 and fix it if it is affected.\n\nWhat it is: GHSA-w67g-5rqw-f597 is a vulnerability in github.com/gorilla/websocket, published on 24 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-w67g-5rqw-f597 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/gorilla/websocket (Go): affected all versions; fixed in 1.5.3\n- github.com/gorilla/websocket (Go): affected all versions; fixed in 1.5.3\n- github.com/gorilla/websocket (Go): affected all versions; fixed in 1.5.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-w67g-5rqw-f597/ (Markdown: https://insights.sbomify.com/GHSA-w67g-5rqw-f597/index.md)","id":"GHSA-w67g-5rqw-f597","markdown":"https://insights.sbomify.com/GHSA-w67g-5rqw-f597/index.md","name":"GHSA-w67g-5rqw-f597","record":{"aliases":["GO-2026-6278"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Go WebSocket library","requires_auth":"none","summary":"Attackers can predict WebSocket mask keys due to weak PRNG usage, enabling frame content injection in Go applications using Gorilla WebSocket.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"gorilla/websocket used `math/rand` (cryptographically weak pseudo-random number generator) to generate WebSocket frame mask keys prior to commit d67f4185. WebSocket masking keys MUST be unpredictable to prevent frame content injection attacks. math/rand produces deterministic output when seeded with a known value, enabling an attacker to predict or recover mask keys and inject content into WebSocket connections.\n\n**Type:** Use of Cryptographically Weak Pseudo-Random Number Generator\n**Fix:** Replaced math/rand with crypto/rand (commit d67f4185, released in v1.5.3)\n**Credit:** bounty-hunter v6.0 silent-fix detection","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Gorilla WebSocket Uses Cryptographically Weak PRNG for WebSocket Mask Key","id":"GHSA-w67g-5rqw-f597","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"weak_cryptography","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.5.3"],"introduced":["0"],"last_affected":[],"package":"github.com/gorilla/websocket","purl":null,"source":"GHSA-w67g-5rqw-f597"},{"ecosystem":"Go","fixed":["1.5.3"],"introduced":["0"],"last_affected":[],"package":"github.com/gorilla/websocket","purl":"pkg:golang/github.com/gorilla/websocket","source":"GHSA-w67g-5rqw-f597"},{"ecosystem":"Go","fixed":["1.5.3"],"introduced":["0"],"last_affected":[],"package":"github.com/gorilla/websocket","purl":"pkg:golang/github.com/gorilla/websocket","source":"GO-2026-6278"}],"products":null,"published":"2026-08-24","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can predict WebSocket mask keys due to weak PRNG usage, enabling frame content injection in Go applications using Gorilla WebSocket.","url":"https://insights.sbomify.com/GHSA-w67g-5rqw-f597/"}