CVE-2026-40875: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in mailcow mailcow-dockerized
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.
AI Analysis
Technical Summary
mailcow-dockerized versions before 2026-03b have an XSS vulnerability (CWE-79) in the user dashboard's login history feature. The client IP is taken from the X-Real-IP header and rendered without HTML escaping, allowing injection of HTML/JS code. This vulnerability can be exploited via self-XSS combined with login CSRF to hijack session context and read emails. The vulnerability is addressed in version 2026-03b. The CVSS 4.0 score is 7.0 (high), reflecting network attack vector, high complexity, partial user interaction, and high impact on confidentiality.
Potential Impact
Successful exploitation allows an attacker to inject malicious scripts into the login history page by manipulating the X-Real-IP header. This can be leveraged with a login CSRF attack to force a victim to log into the attacker's account, enabling the attacker to read the victim's emails in a different browser tab. The vulnerability impacts confidentiality and user session integrity. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Upgrade mailcow-dockerized to version 2026-03b or later, where this vulnerability is fixed. Since no official patch link or advisory is provided, verify the upgrade from the vendor's official release notes. Until upgraded, be cautious of login CSRF attacks and untrusted X-Real-IP headers. Patch status is not explicitly confirmed beyond the version fix mention; check vendor sources for current remediation guidance.
CVE-2026-40875: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in mailcow mailcow-dockerized
Description
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
mailcow-dockerized versions before 2026-03b have an XSS vulnerability (CWE-79) in the user dashboard's login history feature. The client IP is taken from the X-Real-IP header and rendered without HTML escaping, allowing injection of HTML/JS code. This vulnerability can be exploited via self-XSS combined with login CSRF to hijack session context and read emails. The vulnerability is addressed in version 2026-03b. The CVSS 4.0 score is 7.0 (high), reflecting network attack vector, high complexity, partial user interaction, and high impact on confidentiality.
Potential Impact
Successful exploitation allows an attacker to inject malicious scripts into the login history page by manipulating the X-Real-IP header. This can be leveraged with a login CSRF attack to force a victim to log into the attacker's account, enabling the attacker to read the victim's emails in a different browser tab. The vulnerability impacts confidentiality and user session integrity. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Upgrade mailcow-dockerized to version 2026-03b or later, where this vulnerability is fixed. Since no official patch link or advisory is provided, verify the upgrade from the vendor's official release notes. Until upgraded, be cautious of login CSRF attacks and untrusted X-Real-IP headers. Patch status is not explicitly confirmed beyond the version fix mention; check vendor sources for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-15T15:57:41.718Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e7d08919fe3cd2cdf3fb1f
Added to database: 4/21/2026, 7:31:21 PM
Last enriched: 4/21/2026, 7:46:30 PM
Last updated: 4/22/2026, 6:06:54 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.