{"vuln_id":"GHSA-jq2g-h4xr-4mcr","aliases":[],"description":"Cipher Ownership Confusion in Organization Import","published_at":"2026-10-03T20:03:37Z","modified_at":"2026-10-03T20:03:37Z","first_seen_at":"2026-11-22T13:40:16.279428Z","severity":"medium","severity_source":"ghsa","cvss_score":4.3,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","cwe":["CWE-863"],"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-jq2g-h4xr-4mcr"},"matched_alias":null,"items":[{"id":12051,"source":{"id":"gh-vaultwarden","name":"Vaultwarden releases + advisories (GitHub dani-garcia/vaultwarden)"},"title":"GHSA-jq2g-h4xr-4mcr: Cipher Ownership Confusion in Organization Import","summary":"Cipher Ownership Confusion in Organization Import ### Summary An improper authorization issue exists in the organization import endpoint (/api/ciphers/import-organization). While the endpoint validates the target organization specified in the URL query, it fails to enforce that each imported cipher is bound to that organization. A user with organization import permissions can set organizationId at the cipher level to null in the request payload. This causes the imported cipher to be saved to their personal vault while remaining linked to the organization's collection, resulting in inconsistent data ownership and collection mappings between organization and personal vaults. ### Details In `src/api/core/organizations.rs`, the `post_org_import` function overly trusts external input: 1. Although the route validates the user's permissions for the target organization via the URL parameter (`query.organization_id`), when iterating through `data.ciphers`, it **does not force `cipher_data.organization_id` to be overwritten with the authenticated `org_id`**. As a result, the system blindly trusts the organization ID provided in the JSON payload. 2. When invoking `update_cipher_from_data(...).await.ok()`, `.ok()` silently suppresses potential business validation errors. 3. Subsequently, the code unconditionally executes `CollectionCipher::save`, forcefully mapping the generated `cipher.uuid` to the target organization's `collection_uuid`. When an attacker sets `organizationId` to `null`, the cipher item is incorrectly saved to the personal vault while simultaneously being mapped to the organization's collection, breaking physical data isolation. ### PoC **Reproduction Steps:** 1. Log in with an account that has import permissions for the target organization (e.g., Org B). 2. Initiate an import request to Org B and intercept the HTTP request: `POST /api/ciphers/import-organization?organizationId=`. 3. Modify the `organizationId` field in the request payload to `null` ``` \"body\": JSON.stringify({ \"ciphers\": [ { \"type\": 1, \"encryptedFor\": \"XXXXXXXXXXXXXXXXXXXXX\", \"folderId\": null, \"organizationId\": null, ``` 4. **Triggered Result**: * If the payload defines a new collection (only possible for admins and owners), it is created in the target organization. * A new cipher item appears in the user's **personal vault**. Because the cipher item was encrypted by the client using the organization key prior to upload but erroneously assigned to the personal vault server-side, client-side decryption using the personal key fails, resulting in a ghost entry displaying `[error: cannot decrypt]` in the personal account. ### Impact Affected Scope: Vaultwarden instances with organization features enabled. Impact: This can create inconsistent ownership between imported ciphers and organization collections. The same missing binding also allowed setting the per-cipher `organizationId` to a different organization in Affected packages: rust:vaultwarden Patched: vaultwarden 1.37.0","url":"https://github.com/dani-garcia/vaultwarden/security/advisories/GHSA-jq2g-h4xr-4mcr","published_at":"2026-10-03T20:03:37Z","updated_at":"2026-10-03T20:03:37Z","fetched_at":"2026-11-22T13:40:16.224725Z","severity":"medium","cvss_score":4.3,"epss":null,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"dani-garcia","product":"vaultwarden","vuln_id":"GHSA-jq2g-h4xr-4mcr","vuln_ids":["GHSA-JQ2G-H4XR-4MCR"],"tags":["repo-advisory","rust","CWE-863","security","repo:dani-garcia/vaultwarden"],"cluster_id":11365,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12051","html":"https://vulnwatch.ve1ve2.com/item/12051"}},{"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"}}]}