{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:nextcloud:contacts:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "4.0.3"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "ca6b1e05e25534e6d7eba80d4dce6a215ec06053"
            }
          ],
          "repo": "https://github.com/nextcloud/contacts",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-j6cx-mxqf-f9vc"
  ],
  "database_specific": {},
  "details": "Nextcloud is an open-source, self-hosted productivity platform. The Nextcloud Contacts application prior to version 4.0.3 was vulnerable to a stored Cross-Site Scripting (XSS) vulnerability. For exploitation, a user would need to right-click on a malicious file and open the file in a new tab. Due the strict Content-Security-Policy shipped with Nextcloud, this issue is not exploitable on modern browsers supporting Content-Security-Policy. It is recommended that the Nextcloud Contacts application is upgraded to 4.0.3. As a workaround, one may use a browser that has support for Content-Security-Policy.",
  "id": "CVE-2021-39221",
  "modified": "2026-07-08T05:38:12.533419074Z",
  "published": "2021-10-25T19:15:09.730Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/nextcloud/contacts/pull/2407"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/nextcloud/security-advisories/security/advisories/GHSA-j6cx-mxqf-f9vc"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}