Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-40875: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in mailcow mailcow-dockerized

0
High
VulnerabilityCVE-2026-40875cvecve-2026-40875cwe-79cwe-80
Published: Tue Apr 21 2026 (04/21/2026, 19:19:55 UTC)
Source: CVE Database V5
Vendor/Project: mailcow
Product: 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

AILast updated: 04/21/2026, 19:46:30 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses