CVE-2026-40875
JSON

7.0high

mailcow: dockerized vulnerable to stored XSS in user login history real_rip

Severity
7.0high CVSS:4.0 by GitHub_M
Exploit likelihood
0.25% (higher than 17% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
mailcow mailcow-dockerized< 2026-03bCVE List

Classification

CWE-79CWE-80

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

mailcow: dockerized es una suite de groupware/correo electrónico de código abierto basada en docker. En versiones anteriores a 2026-03b, el panel de usuario ’Conexiones exitosas vistas’ (historial de inicio de sesión) muestra la IP del cliente de los registros de inicio de sesión sin escape HTML. Debido a que el servidor confía en el encabezado X-Real-IP como la IP de origen para el registro, un atacante puede inyectar HTML/JS en este campo. Este Self-XSS puede ser explotado mediante un CSRF de inicio de sesión para forzar a la víctima a la cuenta del atacante, y luego leer correos electrónicos en una pestaña de navegador anterior. La versión 2026-03b corrige la vulnerabilidad.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-40875 changed 2026-04-21CVE Terms of Use
NVDCVE-2026-40875 changed 2026-10-26Public domain