CVE-2026-40878mailcow: dockerized
NVD
Vulnerability Summary
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.
CVSS v4.0 Base Metrics — Score 2.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NAttack VectorNetwork
Attack ComplexityLow
Attack RequirementsPresent
Privileges RequiredNone
User InteractionActive
Confidentiality (Vulnerable System)Low
Integrity (Vulnerable System)Low
Availability (Vulnerable System)Low
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Affected & Patched Versions
- mailcow: dockerized < 2026-03b
- mailcow: dockerized >= 2026-03b
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run mailcow: dockerized and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Apr 21, 2026Published
- Apr 22, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new mailcow: dockerized CVEsYou are reading CVE-2026-40878. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsMore mailcow: dockerized CVEs
External References
Data last checked: Nov 21, 2026 01:16 UTC