Skip to main content

CVE-2026-69155 — Vulnerability in atomic-server — CVE Details

HIGH

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

Published November 18, 2026Updated November 18, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.43%). Schedule for your next planned update.

Does your project use an affected atomic-server version?

Paste your Cargo.lock to check it for CVE-2026-69155 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

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):
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://localhost:9883/download/files/<ts>-xss.html.

  1. Inspect how the server serves it:
$ curl -D - http://localhost:9883/download/files/<ts>-xss.html
HTTP/1.1 200 OK
content-type: text/html; charset=utf-8
content-disposition: inline; filename="<ts>-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.

  1. 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 origin, and the intact <script> body. In-browser execution and IndexedDB key theft follow directly from these response headers.)

Impact

Stored XSS in the app origin → theft of the victim's session cookie (not HttpOnly) and Ed25519 private key from IndexedDB → permanent account takeover (not limited by the 10-second token window). If the victim is an admin/root Agent, this is server takeover.

Remediation

  • On /download, force Content-Disposition: attachment for user files, add X-Content-Type-Options: nosniff, and a sandbox CSP.
  • Serve user-uploaded files from a separate origin/subdomain.
  • Set HttpOnly + Secure on the session cookie; do not persist the private key in JS-readable storage.

Advisory Timeline

  • First published November 18, 2026 (8 days ago).
  • Last revised November 18, 2026 — 0 days after initial publication.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
atomic-server crates.io · Affected: All versionsRange-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.7 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

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

Frequently Asked Questions

What is CVE-2026-69155?
Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.7/10).
How do I check if my project is affected by CVE-2026-69155?
CVE-2026-69155 affects atomic-server. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-69155 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.7

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.43%
EPSS percentile: 29

This is a below-median EPSS score — only 29% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-x277-3wcg-g9r2

Related CVEs

  • CVE-2026-69157
    CRITICAL

    Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

  • CVE-2026-69156
    HIGH

    Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key)

  • CVE-2026-69158
    HIGH

    Atomic Server: Unauthenticated full-response SSRF in Atomic-Server /bookmark endpoint

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock