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

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2025-12-05T16:22:50.206Z
- Modified: 2026-10-18T14:10:00.110Z
- Weaknesses: CWE-79, CWE-80
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: >= 32.0.0beta1, < 32.0.3; < 31.0.12
- nextcloud nextcloud_server: from 31.0.0 before 31.0.12; from 32.0.0 before 32.0.3

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-qcw2-p26m-9gc5> (patch, vendor-advisory)
- <https://github.com/nextcloud/viewer/pull/3023> (issue-tracking)
- <https://github.com/nextcloud/viewer/commit/5044a27d61bc40c0f134298d36af91f865335b63> (patch)
- <https://hackerone.com/reports/3357808> (issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2025-66512](https://www.cve.org/CVERecord?id=CVE-2025-66512), CVE Terms of Use, modified 2025-12-05
- NVD: [CVE-2025-66512](https://nvd.nist.gov/vuln/detail/CVE-2025-66512), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-66512 · Whole record: https://cve.day/CVE-2025-66512.json · Rebuilt by cve.day 2026-11-25T22:59:08.340Z
