CVE-2026-40878
lowpriority · track · 0EPSS 0.008 · 57 %ileEUEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (1)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (5)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2026-40878cnnvd
- https://github.com/mailcow/mailcow-dockerized/releasesPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2026-40878cnnvd
- https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-xv9r-j862-5hqfenisa_euvd
- https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-xv9r-j862-5hqfnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan