Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 17, 2026
- Updated
- Nov 19, 2026
- Reserved
- Aug 3, 2026
Description
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.
| Product | Versions |
|---|---|
| atomic-server ontola | >= 0.30.0, < 0.40.3 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 8.7 High | GitHub_M |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
- https://github.com/ontola/atomic-server/security/advisories/GHSA-x277-3wcg-g9r2
- https://github.com/ontola/atomic-server/commit/457c1dc9af4cd00d2aec89720718e504a49f392d
- https://github.com/ontola/atomic-server/commit/8a8badfd3099765e62ccf6f92dc78a408a11106f
- https://github.com/ontola/atomic-server/releases/tag/v0.40.3
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.