CVE-2026-40875: mailcow: dockerized vulnerable to stored XSS in user login history real_rip

Published Apr 21, 2026
·
Updated

mailcow: dockerized is an open source groupware/email suite based on docker. In versions prior to 2026-03b, the user dashboard's "Seen successful connections" (login history) renders the client IP from login logs without HTML escaping. Because the server trusts the X-Real-IP header as the source IP for logging, an attacker can inject HTML/JS into this field. This Self-XSS can be exploited by a Login CSRF to force the victim into the attacker's account, and then read emails in a previous browser tab. 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:19 PM
Data Sourced
via MITRE·07:19 PM
DescriptionWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-40875?

CVE-2026-40875 has a medium severity level due to the potential for stored XSS vulnerabilities leading to security risks.

2

How do I fix CVE-2026-40875?

To fix CVE-2026-40875, update Mailcow: dockerized to version 2026-03b or later where the vulnerability is patched.

3

What components are affected by CVE-2026-40875?

CVE-2026-40875 affects Mailcow: dockerized versions prior to 2026-03b, specifically the user dashboard's login history feature.

4

What kind of vulnerability is CVE-2026-40875?

CVE-2026-40875 is a stored Cross-Site Scripting (XSS) vulnerability affecting the rendering of client IP addresses in user login logs.

5

Who can be impacted by CVE-2026-40875?

CVE-2026-40875 impacts users of Mailcow: dockerized as their login history feature can be exploited to execute malicious scripts.

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