{"vuln_id":"CVE-2026-69155","aliases":["GHSA-x277-3wcg-g9r2"],"description":"Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover","published_at":"2026-11-17T21:18:12.310000Z","modified_at":"2026-11-19T05:18:40.410000Z","first_seen_at":"2026-11-21T19:15:20.145650Z","severity":"high","severity_source":"nvd","cvss_score":8.7,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","cwe":["CWE-79"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00402,"epss_percentile":0.35174,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-69155"},"matched_alias":null,"items":[{"id":11040,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-x277-3wcg-g9r2: Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover","summary":"Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover\n\n## Summary\n\nFiles uploaded via `POST /upload` are served back by `GET /download/{path}` using `actix_files::NamedFile`. For `text/html` and `image/svg+xml`, actix-files (0.6.6) sets `Content-Disposition: inline`, so the browser **renders** the file instead of downloading it. The `/download` route sets **no `Content-Security-Policy`, no `X-Content-Type-Options: nosniff`, and no forced `attachment`** (CSP exists only on the SPA route), and files are served from the **same origin** as the app UI. An authenticated Agent uploads `evil.html` containing `\nSTORED-XSS-PROOF\n------poc--\n```\n\nResponse `200` returns a `downloadURL`, e.g. `http://localhost:9883/download/files/\n-xss.html`.\n\n2. Inspect how the server serves it:\n\n```\n$ curl -D - http://localhost:9883/download/files/\n-xss.html\nHTTP/1.1 200 OK\ncontent-type: text/html; charset=utf-8\ncontent-disposition: inline; filename=\"\n-xss.html\"\n# (no Content-Security-Policy, no X-Content-Type-Options)\n```\n\n`text/html` + `inline` + no CSP/nosniff + same origin → the browser executes the uploaded HTML/JS in the app origin. `image/svg+xml` behaves identically.\n\n3. The attacker sends the link to a victim. On open, the script runs same-origin and reads `document.cookie` (session is not HttpOnly) and the Ed25519 private key from IndexedDB → signs Commits as the victim indefinitely.\n\n**Expected:** user files served with `Content-Disposition: attachment` + `nosniff`, or from an isolated origin.\n**Actual:** served `inline`, `text/html`, same origin, no CSP/nosniff → stored XSS executes.\n\n*(Confirmed at the HTTP layer in the lab: content-type, disposition, missing CSP/nosniff, same\n\nAffected: crates.io:atomic-server\n\nNo fixed version published yet\n\nReferences:\nhttps://github.com/ontola/atomic-server/security/advisories/GHSA-x277-3wcg-g9r2\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-69155\nhttps://github.com/ontola/atomic-server/commit/457c1dc9af4cd00d2aec89720718e504a49f392d\nhttps://github.com/ontola/atomic-server/commit/8a8badfd3099765e62ccf6f92dc78a408a11106f\nhttps://github.com/ontola/atomic-server\nhttps://github.com/ontola/atomic-server/releases/tag/v0.40.3","url":"https://osv.dev/vulnerability/GHSA-x277-3wcg-g9r2","published_at":"2026-11-18T20:41:46Z","updated_at":"2026-11-18T21:00:39.412157Z","fetched_at":"2026-11-21T19:15:55.946387Z","severity":"high","cvss_score":8.7,"epss":0.00402,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"atomic-server","vuln_id":"CVE-2026-69155","vuln_ids":["CVE-2026-69155","GHSA-X277-3WCG-G9R2"],"tags":["osv","crates.io","no-fix-yet"],"cluster_id":2307,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/11040","html":"https://vulnwatch.ve1ve2.com/item/11040"}},{"id":2438,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-x277-3wcg-g9r2 / CVE-2026-69155: Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover","summary":"Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover\n\n## Summary\n\nFiles uploaded via `POST /upload` are served back by `GET /download/{path}` using `actix_files::NamedFile`. For `text/html` and `image/svg+xml`, actix-files (0.6.6) sets `Content-Disposition: inline`, so the browser **renders** the file instead of downloading it. The `/download` route sets **no `Content-Security-Policy`, no `X-Content-Type-Options: nosniff`, and no forced `attachment`** (CSP exists only on the SPA route), and files are served from the **same origin** as the app UI. An authenticated Agent uploads `evil.html` containing `\nSTORED-XSS-PROOF\n------poc--\n```\n\nResponse `200` returns a `downloadURL`, e.g. `http://localhost:9883/download/files/\n-xss.html`.\n\n2. Inspect how the server serves it:\n\n```\n$ curl -D - http://localhost:9883/download/files/\n-xss.html\nHTTP/1.1 200 OK\ncontent-type: text/html; charset=utf-8\ncontent-disposition: inline; filename=\"\n-xss.html\"\n# (no Content-Security-Policy, no X-Content-Type-Options)\n```\n\n`text/html` + `inline` + no CSP/nosniff + same origin → the browser executes the uploaded HTML/JS in the app origin. `image/svg+xml` behaves identically.\n\n3. The attacker sends the link to a victim. On open, the script runs same-origin and reads `document.cookie` (session is not HttpOnly) and the Ed25519 private key from IndexedDB → signs Commits as the victim indefinitely.\n\n**Expected:** user files served with `Content-Disposition: attachment` + `nosniff`, or from an isolated origin.\n**Actual:** served `inline`, `text/html`, same origin, no CSP/nosniff → stored XSS executes.\n\n*(Confirmed at the HTTP layer in the lab: content-type, disposition, missing CSP/nosniff, same\n\nAffected packages: rust:atomic-server","url":"https://github.com/advisories/GHSA-x277-3wcg-g9r2","published_at":"2026-11-18T20:41:46Z","updated_at":"2026-11-18T20:41:47Z","fetched_at":"2026-11-21T19:15:18.416836Z","severity":"high","cvss_score":8.7,"epss":0.00402,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"atomic-server","vuln_id":"CVE-2026-69155","vuln_ids":["CVE-2026-69155","GHSA-X277-3WCG-G9R2"],"tags":["ghsa","rust","CWE-79"],"cluster_id":2307,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2438","html":"https://vulnwatch.ve1ve2.com/item/2438"}},{"id":6914,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-69155: Atomic Server is an open source headless CMS and real-time database. From 0.30.0 until 0.40.3, an authenticated Agent with folder write access can use POST /up…","summary":"Atomic Server is an open source headless CMS and real-time database. From 0.30.0 until 0.40.3, an authenticated Agent with folder write access can use POST /upload to store HTML or SVG content that GET /download/{path} serves from the application origin through server/src/handlers/download.rs. The response sets Content-Disposition: inline and lacks forced attachment handling and X-Content-Type-Options: nosniff, allowing the browser to render the uploaded active content as the application. When a victim opens the link, the script can access the JavaScript-readable atomic_session cookie and the Agent private key in same-origin IndexedDB, enabling persistent account impersonation. This issue is fixed in version 0.40.3.\n\nReferences:\nhttps://github.com/ontola/atomic-server/commit/457c1dc9af4cd00d2aec89720718e504a49f392d\nhttps://github.com/ontola/atomic-server/commit/8a8badfd3099765e62ccf6f92dc78a408a11106f\nhttps://github.com/ontola/atomic-server/releases/tag/v0.40.3\nhttps://github.com/ontola/atomic-server/security/advisories/GHSA-x277-3wcg-g9r2\nhttps://github.com/ontola/atomic-server/security/advisories/GHSA-x277-3wcg-g9r2","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-69155","published_at":"2026-11-17T21:18:12.310000Z","updated_at":"2026-11-19T05:18:40.410000Z","fetched_at":"2026-11-21T19:15:31.482719Z","severity":"high","cvss_score":8.7,"epss":0.00402,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-69155","vuln_ids":["CVE-2026-69155","GHSA-X277-3WCG-G9R2"],"tags":["CWE-79"],"cluster_id":2308,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/6914","html":"https://vulnwatch.ve1ve2.com/item/6914"}}]}