Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify mailcow target
-
DeliverySend email with XSS payload in sender/subject field
-
ExploitMessage lands in deferred Postfix queue
-
InstallAdministrator opens Queue Manager view
-
C2DataTables renders payload as HTML in admin session
-
ExecuteExecute API calls under admin privileges
-
ImpactPersist via new admin mailbox or DKIM exfiltration
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 | Requires that the attacker can cause a message containing the XSS payload to enter and remain in the local Postfix mail queue as exposed by /api/v1/get/mailq/all (e.g., a deferred or held message addressed to or from a mailcow-hosted domain), and that an administrator subsequently opens the Queue Manager view in the mailcow admin UI (UI:P passive interaction). The administrator must have a session in the mailcow admin interface (PR:L), so external unauthenticated mail submission alone does not trigger code execution - execution only fires when an authenticated admin renders the affected DataTables view. Exploitation is limited to mailcow-dockerized build 2026-03b per the EUVD record, and is constrained by however aggressively Postfix sanitises or truncates header fields in the local deployment. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L) produces a 7.4 High score that captures the realistic shape of the threat well: network-reachable, but it requires an attack prerequisite (AT:P - namely that a crafted message reaches the Postfix queue in a state that surfaces in the queue listing), low privileges to view the Queue Manager (PR:L - an administrator account must open the page), and passive user interaction (UI:P). The high VC/VI reflects that successful execution runs in the admin's authenticated session and can be pivoted into full mailcow admin compromise (password changes, mailbox creation, DKIM key exfiltration, mail rerouting). EPSS and KEV data were not supplied; given there is no public exploit identified at time of analysis and no KEV entry, this should be treated as a credible but targeted risk rather than a mass-exploitation candidate - the limiting factor is that an attacker needs to deliver a payload that lands in (and persists in) the mail queue and an admin must subsequently open the Queue Manager. No conflicting signals between vector and description were observed. |
| Exploit ScenarioDerived | An external attacker sends an email to the target mailcow instance with malicious HTML/JavaScript embedded in an attacker-controlled queue-visible field such as the envelope sender, recipient, or subject, crafted so that Postfix retains the message in the deferred queue (for example by addressing a non-existent local mailbox or a temporarily failing relay). When a mailcow administrator later opens the Queue Manager to triage the deferred queue, the unencoded payload renders inside the admin's authenticated session and executes in the browser, allowing the attacker to issue authenticated API calls, exfiltrate the admin session, or create a persistent backdoor mailbox. No public exploit identified at time of analysis, but the technique is straightforward and well-documented for similar stored-XSS-in-mail-queue patterns. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 20, 2026
Stored cross-site scripting in the mailcow-dockerized administrator Queue Manager allows attackers who can influence Postfix queue metadata to inject HTML/JavaScript that executes in an authenticated administrator's browser. The flaw exists because the /api/v1/get/mailq/all endpoint feeds server-controlled queue fields into DataTables rows that are rendered as HTML without sufficient output encoding. No public exploit identified at time of analysis, and the issue is not listed in CISA KEV.
RemediationAI
No vendor-released patch identified at time of analysis; the references point only to the Fluid Attacks advisory (https://fluidattacks.com/advisories/mojabi) and the upstream repository (https://github.com/mailcow/mailcow-dockerized), so administrators should monitor the mailcow-dockerized release feed and apply the next tagged build that supersedes 2026-03b. Until a fix is available, restrict access to the mailcow administrative UI to a trusted management network or VPN (this is a defense in depth measure that does not eliminate the bug but greatly reduces who can be phished into opening the Queue Manager), avoid loading the Queue Manager view on accounts that hold full admin privileges where possible, and consider clearing the Postfix queue (postsuper -d ALL) if suspicious entries are observed - noting that this destroys legitimate undelivered mail. A web application firewall rule that strips or HTML-encodes <, >, and quote characters in responses from /api/v1/get/mailq/all can provide stop-gap mitigation but may break the Queue Manager UI for legitimate Unicode subjects.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
mailcow-dockerized is a popular Dockerised mail server stack bundling Postfix, Dovecot, SOGo, Rspamd and a PHP-based administrative UI. The Queue Manager component in the admin UI calls the internal API endpoint /api/v1/get/mailq/all to enumerate messages currently held by Postfix and renders them through the DataTables jQuery plugin. Because several of those columns (sender, recipient, subject, error reason and similar Postfix-derived strings) are rendered with HTML rather than text and the values are not adequately encoded, this is a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) stored XSS - the malicious payload is persisted in the Postfix queue state and replayed each time an administrator opens the Queue Manager view. The affected CPE is cpe:2.3:a:mailcow:mailcow-dockerized:*:*:*:*:*:*:*:*, with the EUVD record (EUVD-2026-31048) explicitly naming build 2026-03b.
Know when Mailcow 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:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N
Primary rating from Vendor (Fluid Attacks) · only source for this CVE.
CVSS VectorVendor: Fluid Attacks
Lifecycle Timeline
2DescriptionCVE.org
mailcow-dockerized contains a stored cross-site scripting vulnerability in the administrator Queue Manager. The Queue Manager fetches mail queue entries from /api/v1/get/mailq/all, copies server-controlled Postfix queue fields into DataTables rows, and renders several of those fields as HTML without adequate output encoding.
This issue affects mailcow-dockerized: 2026-03b.
Executive ViewAI
Administrators of mailcow-dockerized face a critical exposure: a stored injection vulnerability in the Queue Manager allows account hijacking through manipulation of mail queue data. Currently, no vendor-released patch has been identified, and no public exploit code exists at this time. Immediate interim security controls are essential to protect administrative systems from this unpatched vulnerability.
Restrict /api/v1/get/mailq/all API endpoint access to trusted networks only; implement input validation and sanitization of Postfix queue metadata; deploy Content Security Policy headers; configure output encoding in API response handling; monitor Postfix queue for suspicious metadata; conduct administrator security awareness training on queue-related attack scenarios.
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.
mailcow 0.14, as used in "mailcow: dockerized" and other products, has CSRF. Rated high severity (CVSS 8.8), this vulner
mailcow is a dockerized email package, with multiple containers linked in one bridged network. Rated high severity (CVSS
mailcow is a mailserver suite. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low attack co
mailcow before 2022-05d allows a remote authenticated user to inject OS commands and escalate privileges to domain admin
mailcow is a mailserver suite. Rated high severity (CVSS 8.2), this vulnerability is remotely exploitable, no authentica
mailcow: dockerized is an open source groupware/email suite based on docker. Rated high severity (CVSS 7.1), this vulner
mailcow: dockerized is an open source groupware/email suite based on docker. Rated medium severity (CVSS 6.2), this vuln
mailcow: dockerized is an open source groupware/email suite based on docker. Rated medium severity (CVSS 6.1). Public ex
Stored server-side template injection in mailcow: dockerized releases before 2026-11 lets an authenticated domain admini
Stored cross-site scripting in mailcow dockerized versions before 2026-03b enables remote attackers to execute arbitrary
Stored cross-site scripting (XSS) in mailcow: dockerized (versions prior to 2026-03b) allows remote unauthenticated atta
mailcow is a mail server suite based on Dovecot, Postfix and other open source software, that provides a modern web UI f
EUVD-2026-31048
GHSA-4wpv-p8hj-wr36
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB