{
  "id": "CVE-2026-40875",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40875",
  "published_at": "2026-04-21T19:19:55.768Z",
  "title": "mailcow: dockerized vulnerable to stored XSS in user login history real_rip",
  "vendor": "mailcow",
  "product": "mailcow-dockerized",
  "cvss": {
    "score": 7,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-79",
  "cvss_by_source": {
    "cna": 7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mailcow",
        "product": "mailcow-dockerized",
        "ranges": [
          "\u003c 2026-03b"
        ],
        "fixed_in": [
          "2026-03b"
        ]
      }
    ],
    "upgrade": [
      "Upgrade mailcow-dockerized to 2026-03b or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jprq-w83q-q62h"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
