VulnWatch by ve1ve2
high 8.7 EPSS 0.40%

GHSA-x277-3wcg-g9r2 / CVE-2026-69155: Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
atomic-server

https://github.com/advisories/GHSA-x277-3wcg-g9r2 ↗

ghsarustCWE-79

Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover ## 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 ` STORED-XSS-PROOF ------poc-- ``` Response `200` returns a `downloadURL`, e.g. `http://localhost:9883/download/files/ -xss.html`. 2. Inspect how the server serves it: ``` $ curl -D - http://localhost:9883/download/files/ -xss.html HTTP/1.1 200 OK content-type: text/html; charset=utf-8 content-disposition: inline; filename=" -xss.html" # (no Content-Security-Policy, no X-Content-Type-Options) ``` `text/html` + `inline` + no CSP/nosniff + same origin → the browser executes the uploaded HTML/JS in the app origin. `image/svg+xml` behaves identically. 3. 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. **Expected:** user files served with `Content-Disposition: attachment` + `nosniff`, or from an isolated origin. **Actual:** served `inline`, `text/html`, same origin, no CSP/nosniff → stored XSS executes. *(Confirmed at the HTTP layer in the lab: content-type, disposition, missing CSP/nosniff, same Affected packages: rust:atomic-server

Linked vulnerabilities (2)

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover

CWE: CWE-79Aliases: CVE-2026-69155
CVE-2026-69155 high 8.7 EPSS 0.40% (p35) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover

CWE: CWE-79Aliases: GHSA-x277-3wcg-g9r2NVD: Received

Also reported by (1)