{"id":"CVE-2026-40878","aliases":["CVE-2026-40878"],"related":[],"kind":"vulnerability","state":"published","title":"mailcow-dockerized Login Page has Reflected Parameter Injection / Wrong-Context XSS Escaping","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"mailcow: dockerized es una suite de groupware/correo electrónico de código abierto basada en docker. En versiones anteriores a 2026-03b, la interfaz web de mailcow pasa la variable ’$_SERVER[’REQUEST_URI’]’ sin procesar a Twig como una variable de plantilla global y la renderiza dentro de un literal de cadena de JavaScript en el ayudante ’setLang()’ de ’base.twig’, confiando en el auto-escapado HTML predeterminado de Twig en lugar de la estrategia de escape ’js’ apropiada para el contexto. Además, el ayudante ’query_string()’ de Twig fusiona todos los parámetros ’$_GET’ actuales en los enlaces de cambio de idioma en la página de inicio de sesión, por lo que los parámetros proporcionados por el atacante se reflejan y se conservan a través de la navegación. La versión 2026-03b soluciona la vulnerabilidad.","source":"nvd"}],"published":"2026-04-21T19:21:56.837Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":2.1,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":2.1,"rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2026-03b","status":"affected"}],"vendor":"mailcow","product":"mailcow-dockerized","source":"cvelist"}],"references":[{"url":"https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-xv9r-j862-5hqf","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-22T13:39:14.669Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40878","url":"https://www.cve.org/CVERecord?id=CVE-2026-40878","licence":"CVE Terms of Use","modified":"2026-04-22T13:39:34.206Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40878","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40878","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:19.138Z","epss":{"score":0.00805,"percentile":0.57936,"date":"2026-12-01T12:00:22.000Z"}}