Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker authenticates with crafted X-Real-IP header
-
DeliveryMalicious JavaScript stored in login history
-
ExploitLogin CSRF forces victim into attacker account
-
InstallVictim views poisoned dashboard
-
C2XSS executes in victim context
-
ExecuteScript accesses victim's email tab
-
ImpactExfiltrate sensitive emails to attacker server
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 | Attacker must possess valid low-privileged credentials on the target mailcow instance to seed the XSS payload via manipulated X-Real-IP header during their own login. Victim must be successfully targeted by Login CSRF attack to force authentication into attacker's account - this requires victim to click a malicious link or visit an attacker-controlled page. Victim must have an active authenticated session to their own mailcow account in a different browser tab or window at the time of CSRF-forced login. Victim must navigate to or auto-load the 'Seen successful connections' dashboard in the attacker's account to trigger XSS execution. The mailcow instance must be configured to trust X-Real-IP or X-Forwarded-For headers for login logging, which is default behavior in standard Docker reverse proxy deployments. Exploitation requires coordination of multiple user interaction steps, limiting mass exploitation but enabling targeted attacks against specific high-value users. Browser-based XSS protections (CSP, XSS Auditor) may limit but not fully prevent exploitation depending on mailcow's Content-Security-Policy configuration. |
| Impact | Real-world risk is moderate to high for targeted attacks despite the 7.0 CVSS score requiring specific conditions. The CVSS vector indicates network-based attack (AV:N) but with high complexity (AC:H) and prerequisite conditions (AT:P), requiring low-privileged access (PR:L) and user interaction (UI:P). The high confidentiality impact to both vulnerable and subsequent systems (VC:H/SC:H) and high system integrity impact (SI:H) reflect the email access exposure. EPSS data not provided, but the attack chain complexity (requiring CSRF setup, victim login to attacker account, then tab interaction) suggests low probability of mass exploitation. However, for targeted attacks against high-value mailcow installations, this is highly viable - the attacker needs only a low-privilege account on the target mailcow instance. The GitHub Security Advisory disclosure provides sufficient technical detail for proof-of-concept development. SSVC indicators point to attended exploitation (requires social engineering), not automatable (multi-step attack chain), with high technical impact (email access). Priority depends on deployment context: critical for multi-tenant mailcow instances or environments with privileged users, lower for single-organization deployments with strong access controls. |
| Exploit ScenarioDerived | An attacker with a low-privilege account on the target mailcow instance crafts a malicious X-Real-IP header containing JavaScript payload and authenticates to their own account, poisoning their login history. They then construct a Login CSRF attack (e.g., hidden iframe or social engineering link) that forces the victim to authenticate into the attacker's mailcow account while the victim has their own mailcow inbox open in another browser tab. When the victim views the attacker's account dashboard, the stored XSS executes in the victim's browser context with the victim's session cookies, allowing the malicious script to access and exfiltrate emails from the victim's separate authenticated mailcow session via same-origin requests. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 21, 2026
Cross-site scripting in mailcow dockerized versions prior to 2026-03b enables remote attackers to execute malicious JavaScript in victim browsers through a chained Login CSRF and Self-XSS attack. Exploitation requires low-privileged attacker credentials and victim interaction, but can result in unauthorized access to victim email accounts and session hijacking (CVSS 7.0, AV:N/AC:H/PR:L/UI:P). The vulnerability stems from insufficient HTML escaping of X-Real-IP header values in the login history dashboard, combined with server trust of client-supplied IP headers. No active exploitation or public POC identified at time of analysis, but technical details disclosed via GitHub Security Advisory make weaponization feasible.
RemediationAI
Upgrade immediately to mailcow dockerized version 2026-03b or later, which implements proper HTML escaping for login history display fields. Download the patched release from the official mailcow GitHub repository. The upgrade process follows standard mailcow update procedures via docker-compose pull and restart. For installations unable to upgrade immediately, implement these compensating controls with noted limitations: First, restrict mailcow dashboard access to trusted networks only via firewall rules or VPN requirements - this reduces attack surface but does not eliminate insider threat risk. Second, configure the reverse proxy (nginx/Traefal/HAProxy) to strip or sanitize X-Real-IP and X-Forwarded-For headers from untrusted sources, replacing them with the actual TCP connection IP - however, this breaks legitimate IP geolocation and may interfere with rate limiting based on client IP. Third, disable the login history feature in the user dashboard if the codebase allows - this eliminates the XSS sink but reduces security visibility for users. None of these workarounds are complete mitigations; the vendor patch is required for full resolution. Consult the GitHub Security Advisory at https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jprq-w83q-q62h for detailed remediation guidance and release notes.
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
The vulnerability affects mailcow dockerized (CPE: cpe:2.3:a:mailcow:mailcow-dockerized), a containerized email groupware suite deployed via Docker. The root cause is improper neutralization of input during web page generation (CWE-79, classic stored XSS). The application's login logging mechanism captures the client IP address from the X-Real-IP HTTP header - a reverse proxy header commonly used in Docker deployments behind nginx or similar load balancers. This header value is stored in login history without sanitization and later rendered in the user dashboard's 'Seen successful connections' interface without HTML escaping. Because HTTP headers are fully attacker-controlled, this creates a stored XSS sink. The trust in client-supplied headers is a common misconfiguration in containerized environments where developers assume reverse proxy headers are authoritative without validating their source.
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:H/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
4DescriptionCVE.org
mailcow: dockerized is an open source groupware/email suite based on docker. In versions prior to 2026-03b, the user dashboard's "Seen successful connections" (login history) renders the client IP from login logs without HTML escaping. Because the server trusts the X-Real-IP header as the source IP for logging, an attacker can inject HTML/JS into this field. This Self-XSS can be exploited by a Login CSRF to force the victim into the attacker's account, and then read emails in a previous browser tab. Version 2026-03b fixes the vulnerability.
Executive ViewAI
mailcow (dockerized versions before 2026-03b) contains a cross-site scripting vulnerability in the login history feature that allows authenticated attackers to hijack user sessions and gain unauthorized access to email accounts through a combination of CSRF and XSS techniques. Organizations running affected mailcow instances face risk of email compromise and credential theft, particularly if users click malicious links while logged in.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict login history dashboard access via network-level controls or authentication layers; (2) Implement reverse proxy rules to sanitize or block untrusted X-Real-IP header values before reaching mailcow; (3) Deploy WAF with XSS filtering on all login-related endpoints; (4) enforce strict Content-Security-Policy headers; (5) Require re-authentication for sensitive account changes; (6) monitor and alert on unusual login history access patterns.
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.
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
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-24258
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB