CVE-2026-69155: Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover
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.
References
- github.com/advisories/GHSA-x277-3wcg-g9r2
- github.com/ontola/atomic-server/commit/457c1dc9af4cd00d2aec89720718e504a49f392d
- github.com/ontola/atomic-server/commit/8a8badfd3099765e62ccf6f92dc78a408a11106f
- github.com/ontola/atomic-server/releases/tag/v0.40.3
- github.com/ontola/atomic-server/security/advisories/GHSA-x277-3wcg-g9r2
- nvd.nist.gov/vuln/detail/CVE-2026-69155
Code Behaviors & Features
Detect and mitigate CVE-2026-69155 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →