# CVE-2025-66512: Nextcloud Server vulnerable to XSS in SVG images when opened outside of Nextcloud

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-05 · Modified: 2025-12-05
- Record: https://cvemate.com/vulnerability/CVE-2025-66512 · JSON: https://cvemate.com/vulnerability/CVE-2025-66512/json

## Description

```text
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.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.301%, percentile 24.51%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- nextcloud nextcloud\_server: ≥ 31.0.0, \< 31.0.12 \| ≥ 32.0.0, \< 32.0.3
- nextcloud security-advisories: ≥ 32.0.0beta1, \< 32.0.3 \| \< 31.0.12

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-qcw2-p26m-9gc5>
- <https://github.com/nextcloud/viewer/pull/3023>
- <https://github.com/nextcloud/viewer/commit/5044a27d61bc40c0f134298d36af91f865335b63>
- <https://hackerone.com/reports/3357808>

---

Data as of 2026-12-05T04:45:26.841Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
