# CVE-2026-40878: mailcow-dockerized Login Page has Reflected Parameter Injection / Wrong-Context XSS Escaping

- Severity: Low 2.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 57% of CVEs (2026-12-01)
- Published: 2026-04-21T19:21:56.837Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- mailcow mailcow-dockerized: < 2026-03b

## References

- <https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-xv9r-j862-5hqf>

## Sources

- CVE List: [CVE-2026-40878](https://www.cve.org/CVERecord?id=CVE-2026-40878), CVE Terms of Use, modified 2026-04-22
- NVD: [CVE-2026-40878](https://nvd.nist.gov/vuln/detail/CVE-2026-40878), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40878 · Whole record: https://cve.day/CVE-2026-40878.json · Rebuilt by cve.day 2026-11-25T22:59:19.138Z
