Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft login URL with JS payload in query string
-
DeliveryDeliver URL via phishing to mailcow user
-
ExploitVictim clicks link and loads login page
-
ExecutionREQUEST_URI and GET params reflected into JS setLang() block
-
PersistArbitrary JavaScript executes in victim browser
-
ImpactSession token or credentials exfiltrated to attacker
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 that a victim user actively click a crafted URL pointing to the mailcow login page - user interaction is mandatory (UI:A in CVSS 4.0) and no attacker authentication is required (PR:N). The injection points are specifically the login page's language-switching UI and the |
| Impact | The CVSS 4.0 score of 2.1 accurately reflects the constrained real-world risk: while the attack vector is network (AV:N) and no attacker privileges are required (PR:N), mandatory active user interaction (UI:A) and specific attack prerequisites (AT:P) significantly reduce exploitability. All three vulnerable-system impact metrics (VC:L/VI:L/VA:L) are Low, and subsequent-system impact is absent (SC:N/SI:N/SA:N), confirming this is a browser-scoped, session-level risk rather than a server-side compromise. EPSS at 0.05% (15th percentile) and SSVC exploitation status of 'none' with 'non-automatable' attack mode corroborate that this is not being leveraged at scale. The publicly available Nuclei template primarily enables detection scanning rather than weaponized exploitation. The practical risk concentrates on mailcow deployments serving high-value targets, where a phished admin click could yield session token theft or credential harvesting - SSVC's 'partial' technical impact is appropriate for this scope. There are no conflicting signals; all data sources consistently point to a low-priority, patch-when-convenient finding for most deployments. |
| Exploit ScenarioDerived | An attacker crafts a URL targeting the mailcow login page with a JavaScript payload embedded in a query parameter (e.g., |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Reflected XSS in mailcow-dockerized's login page (all versions prior to 2026-03b) allows a remote unauthenticated attacker to inject and execute arbitrary JavaScript in a victim's browser by delivering a crafted URL. The flaw stems from two compounding issues: the raw REQUEST_URI server variable is rendered inside a JavaScript string literal in base.twig using HTML-only escaping instead of JS-context escaping, and the query_string() helper propagates all $_GET parameters into language-switching links, preserving injected payloads across page navigation. A publicly available Nuclei detection template confirms the attack surface is known; however, SSVC lists exploitation as 'none' and EPSS at 0.05% indicates no observed widespread abuse at time of analysis.
RemediationAI
Upgrade mailcow-dockerized to version 2026-03b or later, which resolves the vulnerability by applying context-aware Twig JS escaping to REQUEST_URI in the setLang() JavaScript block and sanitizing $_GET parameter passthrough in the query_string() helper. The vendor advisory and patch details are at https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-xv9r-j862-5hqf. If immediate upgrade is not feasible, restrict access to the mailcow login page to trusted IP ranges via reverse proxy or firewall rules - this reduces the attack surface for external phishing-driven exploitation but does not protect against threats originating from trusted networks. Additionally, deploying a strict Content Security Policy header (e.g., script-src 'self') on the mailcow web interface would limit injected script execution; note this may require testing against legitimate mailcow UI behavior as CSP can interfere with inline script usage elsewhere in the application.
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
mailcow-dockerized (CPE: cpe:2.3:a:mailcow:mailcow-dockerized:*:*:*:*:*:*:*:*) is a Docker-based open-source email and groupware platform using PHP and the Twig templating engine. The root cause (CWE-79: Improper Neutralization of Input During Web Page Generation) arises in two places within base.twig: first, $_SERVER['REQUEST_URI'] is injected as a global Twig template variable and embedded directly inside a JavaScript string literal within the setLang() helper, where Twig's default HTML auto-escaping is insufficient - it does not neutralize JS-breaking characters such as backslashes, unescaped quotes, or newlines that could close the string context and inject executable code; second, the query_string() Twig helper blindly merges all current $_GET parameters into language-switching anchor links on the login page, expanding the reflection surface and allowing an attacker's payload to persist across language-toggle navigation without re-delivery. The fix in 2026-03b applies the appropriate |escape('js') Twig filter in the JavaScript context and sanitizes $_GET passthrough in the helper.
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:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Reflected XSS over network with no auth needed (PR:N), mandatory user click (UI:R), browser scope change (S:C), low confidentiality and integrity impact, no availability impact.
Primary rating from Vendor (GitHub_M).
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 mailcow web interface passes the raw $_SERVER['REQUEST_URI'] to Twig as a global template variable and renders it inside a JavaScript string literal in the setLang() helper of base.twig, relying on Twig's default HTML auto-escaping instead of the context-appropriate js escaping strategy. In addition, the query_string() Twig helper merges all current $_GET parameters into the language-switching links on the login page, so attacker-supplied parameters are reflected and preserved across navigation. Version 2026-03b fixes the vulnerability.
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-24262
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB