2.1low
mailcow-dockerized Login Page has Reflected Parameter Injection / Wrong-Context XSS Escaping
- Severity
- 2.1low CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.80% (higher than 57% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mailcow mailcow-dockerized | < 2026-03b | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40878 changed 2026-04-22 | CVE Terms of Use |
| NVD | CVE-2026-40878 changed 2026-10-26 | Public domain |