Skip to main content

mailcow: dockerized CVE-2026-40873

| EUVDEUVD-2026-24255 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-04-21 GitHub_M
8.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Send email with XSS payload in attachment filename
  2. Delivery
    Email quarantined by spam filter
  3. Exploit
    Administrator views quarantine item in web interface
  4. Execution
    Unsanitized filename renders in DOM
  5. Persist
    JavaScript executes in admin session
  6. Impact
    Session cookie theft or account takeover

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 quarantine feature to be actively used with administrator review of quarantined emails via the web interface. Attacker must have ability to send emails to the target mailcow domain (standard SMTP access, not privileged). Sent emails must trigger mailcow's spam filtering to be placed in quarantine rather than delivered or rejected outright-achieved through moderate spam characteristics that don't meet reject threshold. Administrator must authenticate to mailcow web interface with privileges to access quarantine management (typically admin or domain admin role) and manually click on the specific quarantined message containing the malicious attachment name. No special mailcow configuration beyond default quarantine functionality is required. Attack is limited by user interaction requirement (UI:P in CVSS vector) and present attack requirements (AT:P), meaning success depends on administrator behavior patterns and organizational quarantine review workflows rather than technical barriers.

Impact

Real-world risk is HIGH for deployed mailcow instances with administrator quarantine review workflows. CVSS 4.0 score of 8.9 accurately reflects the severe impact: network-based attack vector (AV:N) with low attack complexity (AC:L) requiring present attack requirements (AT:P) and user interaction (UI:P) by an administrator. All confidentiality, integrity, and availability impacts rated HIGH for both vulnerable system and subsequent system scope (VC:H/VI:H/VA:H/SC:H/SI:H/SA:N), indicating potential for full administrative account takeover with downstream impact. However, exploitation requires: (1) attacker ability to send emails to the target domain, (2) email being quarantined rather than delivered, (3) administrator actively reviewing quarantine items. No EPSS data provided, no CISA KEV listing indicates targeted rather than mass exploitation, and no public POC confirmed at analysis time. SSVC assessment suggests moderate priority: exploitation requires social engineering (admin must click quarantine item), technical impact is total compromise but scope limited to organizations actually using quarantine review features. Primary risk is to multi-tenant mail providers and enterprises with dedicated security teams reviewing spam quarantines daily. Organizations not actively using mailcow quarantine features have significantly lower effective risk despite high CVSS.

Exploit ScenarioDerived

An external attacker sends a spam or phishing email to the target mailcow domain with an attachment named <img src=x onerror=alert(document.cookie)>.pdf or similar XSS payload embedded in the filename. The mailcow spam filter quarantines this email as expected. When a system administrator logs into the mailcow web interface and clicks the quarantined message to review details, the unsanitized attachment filename injects directly into the HTML of the quarantine modal. The browser executes the embedded JavaScript in the context of the administrator's session, allowing the attacker to steal session cookies, create new administrative accounts, modify mail routing rules, or exfiltrate email data. Because publicly available exploit code exists for similar stored XSS vulnerabilities and attack complexity is low, adversaries familiar with basic XSS techniques can easily weaponize this vulnerability once they identify a target using vulnerable mailcow versions.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 21, 2026

Stored cross-site scripting (XSS) in mailcow: dockerized (versions prior to 2026-03b) allows remote unauthenticated attackers to execute arbitrary JavaScript in administrator sessions by delivering emails with malicious attachment filenames. When administrators view quarantined emails through the web interface, unsanitized filenames inject into HTML without escaping, triggering automatic JavaScript execution that can compromise administrator accounts. No public exploit or active exploitation confirmed at time of analysis, though CVSS 8.9 (CVSS 4.0) reflects high impact with low attack complexity requiring user interaction.

RemediationAI

Upgrade immediately to mailcow: dockerized version 2026-03b or later, which implements proper HTML escaping for attachment filenames in the quarantine details modal. Download from the official GitHub repository following standard mailcow upgrade procedures for Docker-based deployments. Vendor advisory at https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-2xjc-rg88-jvpp confirms fix availability and includes upgrade guidance. If immediate patching is not feasible, implement these compensating controls with noted trade-offs: (1) Restrict quarantine management interface access to trusted IP ranges via reverse proxy rules or firewall ACLs-reduces attack surface but doesn't prevent exploitation by compromised legitimate administrators. (2) Disable automatic quarantine retention and rely solely on real-time spam filtering-eliminates vulnerable code path entirely but removes quarantine review capability for false positive recovery. (3) Implement Content Security Policy headers blocking inline JavaScript execution on admin interface-mitigates XSS impact but may break legitimate mailcow functionality and requires testing. All workarounds provide partial risk reduction only; vendor patch is the definitive solution.

Affected VersionsENISA

mailcow-dockerized < 2026-03b

Affected Packages

euvd mailcow_dockerized fix: 2026-03b

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

Mailcow: dockerized is a containerized open-source email and groupware suite running on Docker. The vulnerability resides in the Quarantine details modal component of the administrative web interface, which displays metadata about quarantined emails including attachment filenames. The application fails to perform HTML entity encoding or sanitization before inserting attachment filenames into the DOM, creating a classic stored XSS (CWE-79) vulnerability. Because quarantine items are stored server-side and rendered upon administrator access, this is a stored/persistent XSS rather than reflected. The vulnerability affects the CPE-identified product cpe:2.3:a:mailcow:mailcow-dockerized across all versions prior to the 2026-03b release, which introduced proper output encoding for user-controlled attachment name fields.

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 (GitHub_M) PRIMARY 8.9 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:N

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

4
Patch released
Apr 22, 2026 - 21:02 nvd
Patch available
Patch available
Apr 21, 2026 - 21:02 EUVD
CVSS changed
Apr 21, 2026 - 20:22 NVD
8.9 (HIGH)
CVE Published
Apr 21, 2026 - 19:15 nvd
HIGH 8.9

DescriptionCVE.org

mailcow: dockerized is an open source groupware/email suite based on docker. In versions prior to 2026-03b, the Quarantine details modal injects attachment filenames into HTML without escaping, allowing arbitrary HTML/JS execution. An attacker can deliver an email with a crafted attachment name so that when an admin views the quarantine item, JavaScript executes in their browser, taking over their account. Version 2026-03b fixes the vulnerability.

Executive ViewAI

Why It Matters

mailcow: dockerized versions prior to 2026-03b contain a stored cross-site scripting vulnerability in email attachment filename handling that allows unauthenticated attackers to execute arbitrary JavaScript within administrator browser sessions. This vulnerability directly compromises administrative accounts through weaponized emails, creating a pathway to full email system compromise without requiring prior authentication.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict mailcow web interface access to trusted IP ranges via firewall or reverse proxy; (2) implement email content filtering rules to reject messages with attachment filenames containing HTML/JavaScript syntax; (3) enforce multi-factor authentication for all administrator accounts to reduce lateral movement impact; (4) disable email quarantine review features if operationally feasible; (5) monitor administrator account audit logs for unauthorized actions; (6) educate administrators to avoid clicking links or viewing unknown attachments through the web interface.

Threat Intelligence Overview

EPSS Score
0.1%
Top 77% exploitable
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.1%
Patch available Yes
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

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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-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

CVE-2026-7460 HIGH
7.4 May 20

Stored cross-site scripting in the mailcow-dockerized administrator Queue Manager allows attackers who can influence Pos

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