Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Agent with folder write
-
DeliveryUpload HTML/SVG payload via POST /upload
-
ExploitSend /download link to victim
-
ExecutionBrowser renders script same-origin on open
-
PersistExfiltrate session cookie and IndexedDB private key
-
ImpactImpersonate victim account persistently
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) the attacker to be an authenticated Agent holding write access to at least one folder, so they can call POST /upload (authenticated per CVSS PR:L); (2) the affected version range 0.30.0 through 0.40.2, where server/src/handlers/download.rs serves user blobs with Content-Disposition: inline and without X-Content-Type-Options: nosniff or forced attachment; (3) upload of content the browser will render actively - specifically text/html or image/svg+xml, whose mimetype is guessed from the file extension at upload; and (4) a victim who opens the /download/{path} link top-level in a browser (CVSS UI:R). Limiting factors: this is not remote-unauthenticated - it needs an existing write-capable Agent and victim interaction, and the /download route (not the CSP-protected SPA route) must be reachable same-origin. The impact is amplified because the atomic_session cookie is not HttpOnly and the Ed25519 private key lives in JS-readable IndexedDB; environments where write access is restricted to fully trusted Agents face substantially lower realistic risk. The complete fix is upgrading to 0.40.3 (the patch forces attachment + nosniff for user blobs). |
| Impact | This is a credible, action-worthy stored-XSS-to-account-takeover issue, but not a drop-everything emergency on the available signals. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N, score 8.7) indicates a network-reachable, low-complexity flaw that nonetheless requires two gating conditions: PR:L (the attacker must already be an authenticated Agent with folder write access) and UI:R (a victim must open the attacker-supplied /download link). The scope change (S:C) and C:H/I:H are well justified because the injected script runs same-origin and steals both the non-HttpOnly atomic_session cookie and the Agent's Ed25519 private key from IndexedDB, yielding durable impersonation across a trust boundary rather than a transient session issue. No EPSS score and no KEV listing were provided, so there is no evidence of active or widespread exploitation - status is 'no public exploit identified as confirmed working', though a detailed public PoC reference does exist in the GHSA advisory (lab-confirmed at the HTTP layer only). The vendor-assigned priority is 'this_week', consistent with a serious-but-gated authenticated bug rather than act_now/emergency. Net: real priority for any Atomic Server operator with multiple Agents or untrusted writers, de-prioritizable where only fully trusted Agents hold write access. Missing data to note explicitly: no EPSS, no KEV, and in-browser code execution / key theft are inferred from response headers in the advisory, not independently demonstrated end-to-end. |
| Exploit ScenarioDerived | An authenticated Agent with write access to a folder uses POST /upload to store an evil.html (or SVG) file containing a <script> payload, then sends the resulting /download/{path} link to a victim. Because the response is served same-origin with Content-Disposition: inline, text/html, and no nosniff/CSP, the victim's browser renders and executes the script, which reads the JS-accessible atomic_session cookie and the Ed25519 private key from same-origin IndexedDB and exfiltrates them for persistent impersonation. A detailed public PoC reference exists in the GHSA advisory; it is confirmed only at the HTTP layer and is not verified as working in-browser exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Stored cross-site scripting in Atomic Server 0.30.0 through 0.40.2 lets an authenticated Agent with write access to at least one folder upload HTML or SVG content via POST /upload that GET /download/{path} then serves inline from the application origin, so attacker-supplied script runs as the app when a victim opens the link. Because the atomic_session cookie is not HttpOnly and the Agent's Ed25519 private key sits in same-origin IndexedDB, successful script execution yields session and key theft and therefore persistent account impersonation, with server takeover if the victim is an admin/root Agent. The issue is fixed in 0.40.3 and is scored this_week by vulnerability priority, with no active-exploitation signal in the supplied data; successful abuse requires a pre-existing write-capable Agent and victim interaction (CVSS PR:L/UI:R).
RemediationAI
Upgrade Atomic Server to 0.40.3 or later (release https://github.com/ontola/atomic-server/releases/tag/v0.40.3, containing commits 457c1dc9af4cd00d2aec89720718e504a49f392d and 8a8badfd3099765e62ccf6f92dc78a408a11106f), which forces Content-Disposition: attachment plus X-Content-Type-Options: nosniff on user-uploaded blob responses; per the commit message this does not break legitimate embedded use like <img> fetches, since Content-Disposition only affects top-level navigation. If upgrading cannot happen immediately, the vendor advisory's compensating measures are: front /download with a reverse proxy or middleware that adds Content-Disposition: attachment, X-Content-Type-Options: nosniff and a sandbox Content-Security-Policy (trade-off: HTML/SVG assets can no longer be previewed directly in the browser, and proxied responses must be kept consistent with the app's routing); serve user-uploaded files from a separate origin or subdomain so script cannot reach the app's origin-scoped storage (trade-off: requires DNS/TLS and CORS or link-rewriting work); and reduce exposure by limiting folder write access to fully trusted Agents, since the exploit needs an authenticated writer. The advisory additionally recommends setting HttpOnly and Secure on the atomic_session cookie and not persisting the Agent private key in JavaScript-readable storage, noting that updating to 0.40.3 is the complete fix for the header-level flaw.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in cargo
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Atomic Server is a Rust headless CMS and real-time database built on actix-web. Uploaded files are stored by server/src/handlers/upload.rs with the mimetype guessed from the file extension, and served back by server/src/handlers/download.rs, which originally wrapped actix_files::NamedFile::open(...).into_response(req). actix-files 0.6.6 emits Content-Disposition: inline for text/html and image/svg+xml, and the /download route sets no Content-Security-Policy, no X-Content-Type-Options: nosniff and no forced attachment; CSP is configured only on the SPA route in server/src/handlers/single_page_app.rs. The result is CWE-79 stored XSS executing same-origin with the app UI rather than in a sandboxed context, which matters because the atomic_session cookie is written via document.cookie (not HttpOnly) and the Ed25519 private key is persisted in JavaScript-readable IndexedDB (browser/data-browser/src/helpers/agentStorage.ts). The upstream fix introduces a user_blob_response helper in download.rs that sets Content-Disposition: attachment and X-Content-Type-Options: nosniff for every user blob path, including the processed-image handlers; per the commit message, Content-Disposition governs only top-level navigation, so legitimate embedded use such as <img> fetches is unaffected. The trigger is well described in the supplied advisory and commit diff; in-browser execution and IndexedDB key theft were reasoned from the confirmed response headers rather than demonstrated end-to-end in the advisory's lab check.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
Authenticated write-capable Agent uploads the payload (PR:L) and a victim must open the link (UI:R); same-origin script theft of another Agent's credentials crosses a trust boundary (S:C) giving C:H/I:H, no availability impact (A:N).
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-79 (Improper Neutralization of Input During Web Page Generation), stored variant.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Atomic Server versions 0.30.0 through 0.40.2 contain a stored cross-site scripting flaw that allows any user with write access to a folder to plant malicious content that executes in a victim's browser, potentially exposing session cookies and cryptographic signing keys. Successful exploitation enables persistent account impersonation, and if an administrator or root-level account is targeted, could lead to full server compromise. Leadership should care because any team relying on affected versions for shared content workflows faces credential and identity-theft risk affecting both individual users and privileged administrators.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-127555
GHSA-x277-3wcg-g9r2
NVD
CVE.org
EPSS
Exploit-DB