mailcow-dockerized Login Page has Reflected Parameter Injection / Wrong-Context XSS Escaping
CVE-2026-40878Published 21 Apr 2026, 19:21 UTC
Real-world risk
0.9/ 10Low
Routine
If the vulnerable configuration applies to you: 2.1
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.1
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| mailcow-dockerizedNiche | < 2026-03b | 2026-03b |
What to do
Update to a fixed version: 2026-03b.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T4: Weaponized (× 1.00)
A Metasploit module, a Nuclei template, or a verified Exploit-DB entry
- Nuclei scanner template (link)
EPSS 0.8% chance of exploitation in 30 days (percentile 58), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.315
- Threat T4: Weaponized1.000
- 10 × impact 0.3 × prerequisites 0.315 × threat 10.945
- Rounded to one decimal between 0.1 and 100.9
Exploitation and evidence timeline
- 21 Apr 2026 Published
- 3 Dec 2026 Nuclei scanner template first seen
- 3 Dec 2026 Risk 0.9 (cvss fallback)
Weakness
CWE-79