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

Published Apr 21, 2026
·
Updated

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['REQUESTURI'] 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 querystring() 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 Software

1 affected component
Mailcow mailcow-dockerized<2026-03b

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade mailcow-dockerized to a version that resolves this vulnerability.

    Fixed in 2026-03b

Event History

Apr 21, 2026
CVE Published
via MITRE·07:21 PM
Data Sourced
via MITRE·07:21 PM
DescriptionWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-40878?

CVE-2026-40878 is classified as a high severity vulnerability due to its potential for reflected parameter injection and cross-site scripting.

2

How do I fix CVE-2026-40878?

To fix CVE-2026-40878, upgrade your mailcow-dockerized instance to version 2026-03b or later.

3

What impact does CVE-2026-40878 have on mailcow-dockerized?

CVE-2026-40878 allows attackers to inject malicious scripts into the login page, which can compromise user accounts.

4

Which versions of mailcow-dockerized are affected by CVE-2026-40878?

Versions of mailcow-dockerized prior to 2026-03b are affected by CVE-2026-40878.

5

Is CVE-2026-40878 easy to exploit?

CVE-2026-40878 is considered to be relatively easy to exploit due to its reliance on reflected parameters.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203