← Vulnerability feed

Vulnerability record · CVE-2024-31204 · published 4 April 2024

CVE-2024-31204: Mailcow\ cross-site scripting vulnerability

MMailcow · Mailcow\

mailcow: dockerized is an open source groupware/email suite based on docker. A security vulnerability has been identified in mailcow affecting versions prior to 2024-04. This vulnerability resides in the exception handling mechanism, specifically when not operating in DEV_MODE. The system saves exception details into a session array without proper sanitization or encoding. These details are later rendered into HTML and executed in a JavaScript block within the user's browser, without adequate escaping of HTML entities. This flaw allows for Cross-Site Scripting (XSS) attacks, where attackers can inject malicious scripts into the admin panel by triggering exceptions with controlled input. The exploitation method involves using any function that might throw an exception with user-controllable argument. This issue can lead to session hijacking and unauthorized administrative actions, posing a significant security risk. Version 2024-04 contains a fix for the issue.

6.1 CVSS 3.1 Medium EPSS 8.2% · top 5.3% CWE-79 · Cross-site scripting
6.1CVSS 3.1 base score
8.2%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

mailcow: dockerized is an open source groupware/email suite based on docker. A security vulnerability has been identified in mailcow affecting versions prior to 2024-04. This vulnerability resides in the exception handling mechanism, specifically when not operating in DEV_MODE. The system saves exception details into a session array without proper sanitization or encoding. These details are later rendered into HTML and executed in a JavaScript block within the user's browser, without adequate escaping of HTML entities. This flaw allows for Cross-Site Scripting (XSS) attacks, where attackers can inject malicious scripts into the admin panel by triggering exceptions with controlled input. The exploitation method involves using any function that might throw an exception with user-controllable argument. This issue can lead to session hijacking and unauthorized administrative actions, posing a significant security risk. Version 2024-04 contains a fix for the issue.

CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2024-31204 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2025-25198Mailcow\ open redirect vulnerabilitymailcow: dockerized is an open source groupware/email suite based on docker. Prior to version 2025-01a, a vulnerability in mailcow's password reset f…EPSS 1.1%8.8CVE-2023-34108Mailcow\ os command injection vulnerabilitymailcow is a mail server suite based on Dovecot, Postfix and other open source software, that provides a modern web UI for user/server administration…EPSS 0.98%8.8CVE-2023-26490Mailcow\ os command injection vulnerabilitymailcow is a dockerized email package, with multiple containers linked in one bridged network. The Sync Job feature - which can be made available to …EPSS 2.2%8.8CVE-2022-31138Mailcow\ os command injection vulnerabilitymailcow is a mailserver suite. Prior to mailcow-dockerized version 2022-06a, an extended privilege vulnerability can be exploited by manipulating the…EPSS 3.3%8.8CVE-2022-31245Mailcow\ os command injection vulnerabilitymailcow before 2022-05d allows a remote authenticated user to inject OS commands and escalate privileges to domain admin via the --debug option in co…EPSS 5.4%8.8CVE-2017-8928Mailcow\ cross-site request forgery vulnerabilitymailcow 0.14, as used in "mailcow: dockerized" and other products, has CSRF.EPSS 2.0%8.2CVE-2022-39258Mailcow\ information exposure vulnerabilitymailcow is a mailserver suite. A vulnerability innversions prior to 2022-09 allows an attacker to craft a custom Swagger API template to spoof Author…EPSS 1.8%7.3CVE-2024-24760Mailcow\ vulnerabilitymailcow is a dockerized email package, with multiple containers linked in one bridged network. A security vulnerability has been identified in mailco…EPSS 0.87%

Source: NIST National Vulnerability Database (record CVE-2024-31204), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.