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

- Severity: High 7.0 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-21T19:19:55.768Z
- Modified: 2026-10-26T21:10:00.170Z
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- mailcow mailcow-dockerized: < 2026-03b

## References

- <https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jprq-w83q-q62h> (exploit)

## Sources

- CVE List: [CVE-2026-40875](https://www.cve.org/CVERecord?id=CVE-2026-40875), CVE Terms of Use, modified 2026-04-21
- NVD: [CVE-2026-40875](https://nvd.nist.gov/vuln/detail/CVE-2026-40875), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40875 · Whole record: https://cve.day/CVE-2026-40875.json · Rebuilt by cve.day 2026-11-25T22:59:19.137Z
