{"id":"CVE-2026-40878","published":"2026-04-21T19:21:56Z","modified":"2026-04-22T13:39:34Z","title":"mailcow-dockerized Login Page has Reflected Parameter Injection / Wrong-Context XSS Escaping","vendor":"mailcow","product":"mailcow-dockerized","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":2.1,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00976,"percentile":0.60873,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-xv9r-j862-5hqf","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":12.17},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":1.47}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-40878","name":"Mailcow < 2026-03b - Href Link Injection","severity":"low","path":"http/cves/2026/CVE-2026-40878.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40878.yaml"}],"provenance":"source"},"vendorSlug":"mailcow","affectedVersions":[{"vendor":"mailcow","product":"mailcow-dockerized","versions":["< 2026-03b"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-22T13:39:14.669308Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-24262","exploited":false,"provenance":"source"}}