{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": [
              "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*",
              "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*"
            ],
            "extracted_events": [
              {
                "introduced": "31.0.0"
              },
              {
                "fixed": "31.0.12"
              },
              {
                "introduced": "32.0.0"
              },
              {
                "fixed": "32.0.3"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "051e46a7a272300cf7c90b3e330fd1501fd6a996"
            },
            {
              "fixed": "6b72bb307e91390c6efe4072b2829bbd1028651c"
            },
            {
              "introduced": "5ee29decb00508122f008abacea26fb3e122b13c"
            },
            {
              "fixed": "0ff293b4efc6b3866ecdbf0d1f643738eea5db3c"
            }
          ],
          "repo": "https://github.com/nextcloud/server",
          "type": "GIT"
        },
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "32.0.0beta1"
              },
              {
                "fixed": "32.0.3"
              },
              {
                "introduced": "0"
              },
              {
                "fixed": "31.0.12"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "144669be072bd262faeec5ec9cc7f7f50059f918"
            },
            {
              "introduced": "0"
            },
            {
              "fixed": "4ae03363057e5f3149886722df2f0d84701b834c"
            },
            {
              "fixed": "24ca2443ce96e5e33607b936f2beac5d46096317"
            },
            {
              "fixed": "5044a27d61bc40c0f134298d36af91f865335b63"
            }
          ],
          "repo": "https://github.com/nextcloud/viewer",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-qcw2-p26m-9gc5"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-80"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66512.json"
  },
  "details": "Nextcloud Server is a self hosted personal cloud system. In Nextcloud Server and Server Enterprise prior to 31.0.12 and 32.0.3, a missing sanitization allowed malicious users to circumvent the content security policy when a malicious user manages to trick a user it viewing an uploaded SVG outside of the Nextcloud Servers web page.",
  "id": "CVE-2025-66512",
  "modified": "2026-08-12T03:51:33.257405029Z",
  "published": "2025-12-05T16:22:50.206Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://hackerone.com/reports/3357808"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/66xxx/CVE-2025-66512.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/nextcloud/security-advisories/security/advisories/GHSA-qcw2-p26m-9gc5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-66512"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nextcloud/viewer/commit/5044a27d61bc40c0f134298d36af91f865335b63"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nextcloud/viewer/pull/3023"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Nextcloud Server vulnerable to XSS in SVG images when opened outside of Nextcloud"
}