{"id":"CVE-2026-110314","published":"2026-10-26T13:31:18Z","modified":"2026-11-19T08:08:20Z","title":"WebSocket frames keep reaching the WebSock after a server-initiated close in Bandit","vendor":"mtrudel","product":"bandit","tier":"tail","description":{"text":"Client-Side Enforcement of Server-Side Security vulnerability in the WebSocket connection handling of mtrudel bandit allows a remote client to keep running WebSock handler code after the server has stopped its connection, via data frames sent after ignoring the server's Close frame.\n\nWhen a WebSock callback returns {:stop, ...}, Bandit.WebSocket.Connection calls terminate/2, sends Close and shuts down the write side, but keeps the connection process running in a :closing state. handle_frame/3 and handle_info/3 never check that state, so later frames still reach handle_in/2 and later messages reach handle_info/2, with the state from the stop tuple, until the client sends Close, TCP drops or the idle timeout fires. A client refused in init/1 after a failed token check could still run an admin-only action.\n\nThis issue affects bandit: from 0.5.1 before 1.14.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00384,"percentile":0.33301,"provenance":"source"},"cwes":[{"id":"CWE-602","name":"Client-Side Enforcement of Server-Side Security"}],"references":[{"url":"https://github.com/mtrudel/bandit/security/advisories/GHSA-2v5v-8f9v-xh85","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-110314.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-110314","tags":["related"]},{"url":"https://github.com/mtrudel/bandit/commit/bb407f2277dcb65a58dd8cc07913a0b58a80e266","tags":["related"]},{"url":"https://github.com/mtrudel/bandit/commit/220b9dfd27f9a21305be2afc75cbe585ddc24e7a","tags":["patch"]}],"priority":{"score":11.1,"factors":[{"name":"EPSS percentile","points":6.66},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"mtrudel","affectedVersions":[{"vendor":"mtrudel","product":"bandit","versions":[">= 0.5.1, < 1.14.0"]},{"vendor":"mtrudel","product":"bandit","versions":[">= bb407f2277dcb65a58dd8cc07913a0b58a80e266, < 220b9dfd27f9a21305be2afc75cbe585ddc24e7a"]}],"workarounds":{"items":["Mark the WebSock state as stopped whenever a callback returns {:stop, ...}, and have handle_in/2 and handle_info/2 return {:ok, state} without acting while that mark is set."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-202","name":"A remote client that ignores the Close frame can keep invoking a WebSock application's handlers after the application refused or ended its session, bypassing an authorization check in init/1 or a kick or ban. This affects WebSock applications that rely on {:stop, ...} to end a session."}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-02T20:59:44.175690Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-109822","exploited":false,"provenance":"source"}}