mailcow: dockerized vulnerable to stored XSS in user login history real_rip
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-40875
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:05 UTC · Revision 1
Source evidence
mailcow: dockerized vulnerable to stored XSS in user login history real_rip
core-osv · Original sourcePublished 21 Apr 2026, 19:19 UTC
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.
osv:CVE-2026-40875
Complete source record
{
"id": "c3bccb4b825a67fb120b01cd03c2b1e43afa626b4bbb260a1030dc54089f20ba",
"url": "https://osv.dev/vulnerability/CVE-2026-40875",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "mailcow: dockerized vulnerable to stored XSS in user login history real_rip",
"summary": "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.",
"evidence": "osv:CVE-2026-40875",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-40875",
"aliases": [
"CVE-2026-40875",
"GHSA-jprq-w83q-q62h"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/mailcow/mailcow-dockerized",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "281cf93db359554e8f4ca941351d5ba157325cc7"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2026-03b"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2026-03b"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"2026-03a",
"2026-03",
"2026-01",
"2025-12a",
"2025-12",
"2025-10a",
"2025-10",
"2025-09c",
"2025-09b",
"2025-09a",
"2025-09",
"2025-07",
"2025-05",
"2025-03b",
"2025-03a",
"2025-03",
"2025-02",
"2025-01a",
"2025-01",
"2024-11b",
"2024-11a",
"2024-11",
"2024-08a",
"2024-08",
"2024-07",
"2024-06c",
"2024-06b",
"2024-06a",
"2024-06",
"2024-04",
"2024-02",
"2024-01e",
"2024-01d",
"2024-01c",
"2024-01b",
"2024-01a",
"2024-01",
"2023-12a",
"2023-12",
"2023-11a",
"2023-11",
"2023-10a",
"2023-10",
"2023-09",
"2023-08",
"2023-07a",
"2023-07",
"2023-05a",
"2023-05",
"2023-04b",
"2023-04a",
"2023-04",
"2023-03",
"2023-02a",
"2023-02",
"2023-01a",
"2023-01",
"2022-12b",
"2022-12a",
"2022-12",
"2022-11b",
"2022-11a",
"2022-11",
"2022-10a",
"2022-10",
"2022-09a",
"2022-09",
"2022-08b",
"2022-08a",
"2022-08",
"2022-07a",
"2022-07",
"2022-06b",
"2022-06a",
"2022-06",
"2022-05d",
"2022-05c",
"2022-05b",
"2022-05a",
"2022-05",
"2022-03a",
"2022-03",
"2022-01a",
"2022-01"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40875.json"
}
}
],
"modified": "2026-10-28T02:30:29.356854291Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40875.json",
"https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jprq-w83q-q62h",
"https://nvd.nist.gov/vuln/detail/CVE-2026-40875"
],
"provider_metadata": {
"cwe_ids": [
"CWE-79",
"CWE-80"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40875.json"
}
},
"related_cves": [
{
"value": "CVE-2026-40875",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496228,
"published_at": "2026-04-21T19:19:55.768+00:00"
}