Skip to main content

mailcow-dockerized CVE-2026-7460

| EUVDEUVD-2026-31048 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-20 Fluid Attacks GHSA-4wpv-p8hj-wr36
7.4
CVSS 4.0 · Vendor: Fluid Attacks
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify mailcow target
  2. Delivery
    Send email with XSS payload in sender/subject field
  3. Exploit
    Message lands in deferred Postfix queue
  4. Install
    Administrator opens Queue Manager view
  5. C2
    DataTables renders payload as HTML in admin session
  6. Execute
    Execute API calls under admin privileges
  7. Impact
    Persist 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

mailcow-dockerized 2026-03b

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

Vendor (Fluid Attacks) PRIMARY 7.4 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 20, 2026 - 04:22 NVD
7.4 (HIGH)
CVE Published
May 20, 2026 - 02:19 nvd
UNKNOWN (no severity yet)

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 86% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2017-8928 HIGH POC
8.8 May 14

mailcow 0.14, as used in "mailcow: dockerized" and other products, has CSRF. Rated high severity (CVSS 8.8), this vulner

CVE-2023-26490 HIGH POC
8.8 Mar 04

mailcow is a dockerized email package, with multiple containers linked in one bridged network. Rated high severity (CVSS

CVE-2022-31138 HIGH POC
8.8 Jul 11

mailcow is a mailserver suite. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low attack co

CVE-2022-31245 HIGH POC
8.8 May 20

mailcow before 2022-05d allows a remote authenticated user to inject OS commands and escalate privileges to domain admin

CVE-2022-39258 HIGH POC
8.2 Sep 27

mailcow is a mailserver suite. Rated high severity (CVSS 8.2), this vulnerability is remotely exploitable, no authentica

CVE-2025-25198 HIGH POC
7.1 Feb 12

mailcow: dockerized is an open source groupware/email suite based on docker. Rated high severity (CVSS 7.1), this vulner

CVE-2024-30270 MEDIUM POC
6.2 Apr 04

mailcow: dockerized is an open source groupware/email suite based on docker. Rated medium severity (CVSS 6.2), this vuln

CVE-2024-31204 MEDIUM POC
6.1 Apr 04

mailcow: dockerized is an open source groupware/email suite based on docker. Rated medium severity (CVSS 6.1). Public ex

CVE-2026-125757 CRITICAL
9.4 Nov 10

Stored server-side template injection in mailcow: dockerized releases before 2026-11 lets an authenticated domain admini

CVE-2026-40872 CRITICAL
9.3 Apr 21

Stored cross-site scripting in mailcow dockerized versions before 2026-03b enables remote attackers to execute arbitrary

CVE-2026-40873 HIGH
8.9 Apr 21

Stored cross-site scripting (XSS) in mailcow: dockerized (versions prior to 2026-03b) allows remote unauthenticated atta

CVE-2023-34108 HIGH
8.8 Jun 07

mailcow is a mail server suite based on Dovecot, Postfix and other open source software, that provides a modern web UI f

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy