Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEmail crafted SVG/HTML inline attachment
-
DeliveryServer stores file with sender-supplied MIME type
-
ExploitAttacker computes content-hash URL under /oss/ or /attachments/
-
ExecutionVictim opens inline-served attachment URL
-
PersistScript runs in app origin, reads localStorage JWT
-
ImpactHijack victim or administrator account
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 the attacker to send an email containing an inline attachment (one with a contentId, i.e. a referenced/embedded part) whose sender-supplied MIME type is a dangerous renderable type - SVG, HTML, XML, or a JavaScript/ECMAScript type (the vendor's isDangerousAttType matches /svg|html|xml|javascript|ecmascript/). Pre-patch, attService.addAtt persisted that attacker MIME type verbatim and served the object inline from the public /oss/ or /attachments/ paths with no X-Content-Type-Options: nosniff and no Content-Security-Policy: sandbox, so the browser renders it as active content in the application origin. The payload then reads the session JWT from localStorage. LIMITING FACTORS: a victim must actively open the predictable content-hash attachment URL in an authenticated browser session (UI:P / UI:R), and account takeover depends on the application storing the session JWT in localStorage; raster image attachments (jpeg/png/gif/webp/etc.) are unaffected as they remain on the safe-inline allowlist. The complete fix is upgrading to 3.6.0 - the patch forces dangerous types to application/octet-stream with an attachment disposition plus nosniff and CSP sandbox. |
| Impact | This is a stored XSS (CWE-79) rated moderate: the supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC:L/VI:L/VA:N, SC:L/SI:L/SA:N) scores 5.3, reflecting network-reachable, unauthenticated delivery that nonetheless needs passive victim interaction (UI:P) and yields only low confidentiality/integrity impact per the vector. The real-world impact, however, is understated by the numeric score: the description states the payload steals session JWTs from localStorage to hijack accounts including administrators, which is effectively account takeover. No EPSS score is provided in the input, and the vulnerability is NOT listed in CISA KEV, so there is no signal of active exploitation. No SSVC automatable/technical-impact decision values are supplied; the only priority signal is the vuln.today 'this_month' decision label, consistent with a serious-but-not-emergency issue. The exploitation path is well-corroborated by the vendor commit diff (introduction of isDangerousAttType/isSafeInlineAtt, nosniff and CSP sandbox headers), so the mechanism is confirmed by source code rather than inferred. Net: a genuine, patch-worthy account-takeover vector gated by victim interaction and a niche product footprint, not a mass-exploitation emergency. |
| Exploit ScenarioDerived | An unauthenticated attacker emails the Cloud Mail instance an inline attachment (SVG or HTML) with a sender-controlled MIME type. The server stores it and serves it inline from a predictable content-hash URL under /oss/ or /attachments/ without nosniff or CSP sandboxing; when a victim - potentially an administrator - opens that URL in their authenticated browser session, the embedded script runs in the application origin and exfiltrates the session JWT from localStorage, enabling account hijack. No public exploit was identified at time of analysis, though VulnCheck's advisory and the vendor commit document the mechanism in detail. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 20, 2026
Stored cross-site scripting in Cloud Mail before 3.6.0 lets an unauthenticated email sender plant active content that executes in the webmail origin when a recipient opens the attachment, exposing the session JWT held in localStorage and enabling account hijack, including administrator accounts. The flaw is in attService.addAtt, which persists the sender-supplied MIME type for inline (contentId) attachments and serves those objects inline from the public /oss/ and /attachments/ paths without X-Content-Type-Options: nosniff or a CSP sandbox. Assigned CVSS 5.3; exploitation requires the victim to open a predictable content-hash URL while authenticated, no public exploit was identified at time of analysis, and the vendor shipped a fix in 3.6.0.
RemediationAI
Vendor-released patch: upgrade Cloud Mail to 3.6.0 (https://github.com/maillab/cloud-mail/releases/tag/v3.6.0), which contains commit 53584f865c3b8aff89f922fad9d41d23b330d6b2. After upgrading, confirm that mail-worker/src/utils/att-headers.js is present and that objects returned from /oss, /attachments and /static carry Content-Type: application/octet-stream for SVG, HTML, XML and JavaScript types, an attachment Content-Disposition for anything outside the raster allowlist, plus X-Content-Type-Options: nosniff and Content-Security-Policy: sandbox. The available sources document no vendor-supplied interim workaround; the only control visible in the patch is the response-header and MIME rewrite itself, so if the upgrade must be staged, blocking or otherwise removing public access to the /oss and /attachments object routes removes the render path described in the fix but breaks legitimate inline and attachment viewing for users - a trade-off to weigh per deployment. VulnCheck's advisory is at https://www.vulncheck.com/advisories/cloud-mail-before-3.6.0-stored-xss-via-inline-inbound-email-attachments and the upstream issue at https://github.com/maillab/cloud-mail/issues/655.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Cloud Mail is a self-hosted webmail application whose mail-worker backend stores message bodies and attachments in object storage abstractions (KV, R2 and S3 service modules) and serves public objects from the /oss, /attachments and /static routes; attachment handling also uses linkedom for HTML parsing. The root cause is CWE-79 stored cross-site scripting compounded by content-type handling: attService.addAtt wrote the attacker's declared attachment MIME type into object metadata verbatim and the retrieval path (kv-obj-service, r2-service, s3-service) replayed it, along with an 'inline' Content-Disposition, without X-Content-Type-Options: nosniff or Content-Security-Policy: sandbox. A message part carrying a contentId and a dangerous renderable type (the patch's isDangerousAttType matches svg, html, xml, javascript and ecmascript) therefore rendered as active content same-origin, and the injected script could read the session JWT from localStorage. The 3.6.0 fix introduces mail-worker/src/utils/att-headers.js with a raster-only SAFE_INLINE_TYPES allowlist (jpeg, jpg, png, gif, webp, avif, bmp, x-icon, vnd.microsoft.icon); dangerous or unknown types are rewritten to application/octet-stream, non-safe inline dispositions are converted to attachment, and publicFileHeaders unconditionally emits nosniff and CSP sandbox. Raster images are unaffected because they stay on the safe-inline allowlist.
Know when Cloud Mail gets its next vulnerability
- 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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Unauthenticated email delivery (PR:N, AV:N, AC:L) but the victim must open the attachment URL (UI:R); script executes in the app origin affecting a separate security scope (S:C) with low confidentiality/integrity impact via session-token theft.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Cloud Mail before 3.6.0 contains a stored cross-site scripting vulnerability in attService.addAtt that allows unauthenticated attackers to store inline attachments with sender-supplied MIME types. Attackers can email SVG or HTML attachments, compute the content-hash URL under /oss/ or /attachments/, and steal session JWTs from localStorage to hijack accounts including administrators.
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-131653
GHSA-w2xm-xwgg-j2h7
NVD
CVE.org
EPSS
Exploit-DB