CVE-2026-69155
## Summary Files 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 `<script>`; when a victim opens the link, the script executes in the app origin. Because the `atomic_session` cookie is set via `document.cookie` (not HttpOnly) and the Agent's Ed25519 private key is stored in same-origin IndexedDB (`browser/data-browser/src/helpers/agentStorage.ts`), the script exfiltrates the private key → **permanent account takeover**. ## Affected component - `server/src/handlers/upload.rs` — stores the file; mimetype guessed from extension. - `server/src/handlers/download.rs:65` — `NamedFile::open(...).into_response(req)` with no CSP/nosniff/attachment; CSP is only set in `server/src/handlers/single_page_app.rs`. ## Steps to Reproduce Environment: `joepmeneer/atomic-server:develop`, `http://localhost:9883`. Attacker is any Agent with write on a folder. 1. Upload an HTML file (multipart, with signed auth headers): ```http POST /upload?parent=http://localhost:9883 HTTP/1.1 Host: localhost:9883 x-atomic-public-key: <pubkey> x-atomic-agent: http://localhost:9883/agents/<pubkey> x-atomic-timestamp: <ms> x-atomic-signature: <ed25519("http://localhost:9883/upload?parent=http://localhost:9883 <ms>")> Content-Type: multipart/form-data; boundary=----poc ------poc Content-Disposition: form-data; name="assets"; filename="xss.html" Content-Type: text/html <html><body><script>alert(document.domain)</script>STORED-XSS-PROOF</body></html> ------poc-- ``` Response `200` returns a `downloadURL`, e.g. `http://lo
Properties
- Summary
- Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover
- Severity
- high
- Nvd fetched at
- 2026-11-19T03:31:17.617109+00:00
- Epss score
- 0.0043
- Cvss score
- 8.7
- Cvss severity
- HIGH
- Retrieved at
- 2026-11-19T03:33:42+00:00
- Ghsa published
- 2026-11-18T20:41:46Z
- Source url
- https://github.com/advisories/GHSA-x277-3wcg-g9r2
- Ghsa updated
- 2026-11-18T20:41:47Z
- Ghsa id
- GHSA-x277-3wcg-g9r2
- Last source
- FIRST EPSS
- Score
- 8.7
- Cvss version
- 3.1
- Cve id
- CVE-2026-69155
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
- First seen by Signal
- 2026-11-17T22:56:04+00:00
- Name
- CVE-2026-69155
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph