{"vuln_id":"GHSA-96f7-78q5-j345","aliases":[],"description":"Unauthenticated WebSocket connection flooding on /notifications/anonymous-hub (resource-exhaustion DoS)","published_at":"2026-10-03T20:04:00Z","modified_at":"2026-10-03T20:04:00Z","first_seen_at":"2026-11-22T13:40:16.279426Z","severity":"medium","severity_source":"ghsa","cvss_score":5.3,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","cwe":["CWE-400","CWE-770"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-96f7-78q5-j345"},"matched_alias":null,"items":[{"id":12050,"source":{"id":"gh-vaultwarden","name":"Vaultwarden releases + advisories (GitHub dani-garcia/vaultwarden)"},"title":"GHSA-96f7-78q5-j345: Unauthenticated WebSocket connection flooding on /notifications/anonymous-hub (resource-exhaustion DoS)","summary":"Unauthenticated WebSocket connection flooding on /notifications/anonymous-hub (resource-exhaustion DoS) # Unauthenticated WebSocket connection flooding on `/notifications/anonymous-hub` (resource-exhaustion DoS) ## Summary The anonymous notifications WebSocket endpoint `GET /notifications/anonymous-hub?token=<...>` accepts and upgrades WebSocket connections **without any authentication and without any connection/rate limit**. Each accepted connection allocates a long-lived async task, an mpsc channel, a global-map entry, a periodic timer and a socket/file descriptor, and stays open indefinitely. A single unauthenticated client can therefore open an unbounded number of persistent connections and exhaust server resources (tasks, memory, file descriptors), degrading or denying the notifications/live-sync service — including the passwordless-login notification channel — for all users. A secondary issue: the global subscription map is keyed by the **client-supplied `token`** and uses last-writer-wins `insert`, allowing a client to overwrite (evict) another subscriber that used the same token. ## Affected version - **Vaultwarden 1.36.0 and earlier** (confirmed on 1.36.0, git `f21a3ada`); the endpoint dates back to login-with-device support. - Fixed in **1.37.0**. ## Details Source: `src/api/notifications.rs` (1.36.0) ```rust #[get(\"/anonymous-hub?\")] // line 190 — NO auth guard fn anonymous_websockets_hub<'r>(ws: WebSocket, token: String, ip: ClientIp) -> Result { ... let (tx, rx) = tokio::sync::mpsc::channel::(100); // per-conn channel (buffer 100) subscriptions.map.insert(token.clone(), tx); // global DashMap, attacker-chosen key ... // rocket_ws::Stream! { ... interval(Duration::from_secs(15)) ... } // per-conn task + 15s keep-alive timer } ``` Contrast with the **authenticated** hub `websockets_hub` (line 107), which validates the token via `crate::auth::decode_login(&token)` before accepting. `anonymous_websockets_hub` performs no such validation — `token` is an arbitrary attacker-controlled string that is never checked and is used directly as the subscription-map key. Per accepted connection the server allocates: - one Tokio task running the stream loop, - one `tokio::sync::mpsc` channel (capacity 100 `Message`s), - one entry in the process-global `WS_ANONYMOUS_SUBSCRIPTIONS` `DashMap`, - one 15-second `tokio::time::interval` timer (keep-alive ping → no idle timeout closes the socket), - one TCP/TLS socket + file descriptor. There is **no authentication, no per-IP connection cap, and no global cap** on these connections. ## Proof of Concept Tested against a stock `vaultwarden/server:1.36.0` container (default config), no credentials used. **1. A single unauthenticated connection is upgraded (arbitrary token, no `Authorization`):** ```bash curl -sk -i --http1.1 \\ -H \"Connection: Upgrade\" -H \"Upgrade: websocket\" \\ -H \"Sec-WebSocket-Version: 13\" -H \"S Affected packages: rust:vaultwarden Patched: vaultwarden 1.37.0","url":"https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-96f7-78q5-j345","published_at":"2026-10-03T20:04:00Z","updated_at":"2026-10-03T20:04:00Z","fetched_at":"2026-11-22T13:40:16.224723Z","severity":"medium","cvss_score":5.3,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"dani-garcia","product":"vaultwarden","vuln_id":"GHSA-96f7-78q5-j345","vuln_ids":["GHSA-96F7-78Q5-J345"],"tags":["repo-advisory","rust","CWE-400","CWE-770","security","repo:dani-garcia/vaultwarden"],"cluster_id":11364,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12050","html":"https://vulnwatch.ve1ve2.com/item/12050"}},{"id":12710,"source":{"id":"gh-vaultwarden","name":"Vaultwarden releases + advisories (GitHub dani-garcia/vaultwarden)"},"title":"[SECURITY RELEASE] dani-garcia/vaultwarden 1.37.0","summary":"Fixes advisories: GHSA-hw4g-2v3f-74x5, GHSA-rxhg-2pw9-vf25, GHSA-455c-vgg9-jxw8, GHSA-wc45-m6pv-rrf9, GHSA-rqf8-2568-r7mc, GHSA-88qc-6ch9-mc3j, GHSA-xwf8-pjh7-h589, GHSA-vh5m-fc9v-m84g, GHSA-f3qw-qg77-hmm4, GHSA-96f7-78q5-j345, GHSA-jq2g-h4xr-4mcr\n\nSecurity keywords: security, ssrf, GHSA-HW4G-2V3F-74X5, GHSA-VH5M-FC9V-M84G, GHSA-XWF8-PJH7-H589, GHSA-88QC-6CH9-MC3J, GHSA-RXHG-2PW9-VF25, GHSA-96F7-78Q5-J345, GHSA-455C-VGG9-JXW8, GHSA-F3QW-QG77-HMM4, GHSA-JQ2G-H4XR-4MCR, GHSA-RQF8-2568-R7MC\n\n## Note\r\nThis update is required for support with clients with version 2026.7.0+, please update before reporting any issues with them.\r\n\r\n## Security Fixes\r\nThis release contains security fixes for the following advisories. We strongly advice to update as soon as possible.\r\n- SSRF via the icon endpoint [[GHSA-hw4g-2v3f-74x5]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-hw4g-2v3f-74x5) [[GHSA-vh5m-fc9v-m84g]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-vh5m-fc9v-m84g) (**Medium**, 5.8 / 6.3)\r\n- Cross-Organization Cipher Access [[GHSA-xwf8-pjh7-h589]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-xwf8-pjh7-h589) (**Medium**, 5.9)\r\n- Organization Policy Bypass on Directory Import [[GHSA-88qc-6ch9-mc3j]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-88qc-6ch9-mc3j) (**Medium**, 5.5)\r\n- Send Access-Count Bypass [[GHSA-rxhg-2pw9-vf25]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-rxhg-2pw9-vf25) (**Medium**, 5.3)\r\n- Unauthenticated WebSocket Flooding DDOS [[GHSA-96f7-78q5-j345]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-96f7-78q5-j345) (**Medium**, 5.3)\r\n- Cross-Organization Secret Sharing [[GHSA-455c-vgg9-jxw8]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-455c-vgg9-jxw8) (**Medium**, 4.3)\r\n- Organization Import Authorization [[GHSA-f3qw-qg77-hmm4]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-f3qw-qg77-hmm4)[[GHSA-jq2g-h4xr-4mcr]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-jq2g-h4xr-4mcr) (**Medium**, 4.3)\r\n- Organization Data Enumeration via the Manager role [[GHSA-rqf8-2568-r7mc]](https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-rqf8-2568-r7mc) (**Medium**, 4.3)\r\n\r\nThese are private for now, pending CVE assignment and publishing at a later date.\r\n\r\n## What's Changed\r\n* OpenDAL S3 parameter support by @txase in https://github.com/dani-garcia/vaultwarden/pull/6127\r\n* Fix SSO Cookie path by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/7187\r\n* fix email 2fa for bw cli by @stefan0xC in https://github.com/dani-garcia/vaultwarden/pull/7225\r\n* sso_auth improvements by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7197\r\n* Reject unrecognised DATABASE_URL instead of silent SQLite fallback by @mfw78 in https://github.com/dani-garcia/vaultwarden/pull/7061\r\n* Switch to `xx-cargo` by @dfunkt in https://github.com/dani-garcia/vaultwarden/pull/6640\r\n* Updates and fixes by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/7235\r\n* Switch to Edition 2024, more clippy lints, and less macro calls by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/7200\r\n* Serve Apple app site association file by @user71424q in https://github.com/dani-garcia/vaultwarden/pull/7191\r\n* Update Rust, Crates and GHA by @BlackDex in https://github.com/dani-garcia/vaultwarden/pull/7307\r\n* Fix enforce blocked by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7246\r\n* Admin password recovery endpoint change by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7270\r\n* fix(sends): emit hideEmail as non-null boolean in sync response by @kvdb in https://github.com/dani-garcia/vaultwarden/pull/7283\r\n* Org membership delete remove Invitation by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7284\r\n* [v2026.5.0] Registration request update by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7295\r\n* [v2026.5.0] PutPolicy now using vnext format by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7296\r\n* 2026.6.0 send support by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7346\r\n* Add SSO_AUTHORIZE_BODY by @Timshel in https://github.com/dani-garcia/vaultwarden/pull/7357\r\n* Add `pm-26340-linux-biometrics-v2` feature flag by @pilotstew in https://github.com/dani-garcia/vaultwarden/pull/7358\r\n* improve CI by @TriplEight in https://github.com","url":"https://github.com/dani-garcia/vaultwarden/releases/tag/1.37.0","published_at":"2026-07-24T17:04:39Z","updated_at":null,"fetched_at":"2026-11-22T14:05:38.135281Z","severity":"medium","cvss_score":5.9,"epss":0.0033,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"dani-garcia","product":"vaultwarden","vuln_id":"CVE-2026-116678","vuln_ids":["CVE-2026-116678","CVE-2026-33420","CVE-2026-47160","GHSA-455C-VGG9-JXW8","GHSA-72VH-X5JQ-M82G","GHSA-88QC-6CH9-MC3J","GHSA-96F7-78Q5-J345","GHSA-F3QW-QG77-HMM4","GHSA-HW4G-2V3F-74X5","GHSA-JJXG-P3V6-52WW","GHSA-JQ2G-H4XR-4MCR","GHSA-RQF8-2568-R7MC","GHSA-RXHG-2PW9-VF25","GHSA-VH5M-FC9V-M84G","GHSA-WC45-M6PV-RRF9","GHSA-XWF8-PJH7-H589"],"tags":["release","repo:dani-garcia/vaultwarden","security","stack","vaultwarden"],"cluster_id":11350,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12710","html":"https://vulnwatch.ve1ve2.com/item/12710"}}]}