CVE-2025-66512: nextcloud security-advisories · Basic XSS
Affects nextcloud security-advisoriesSource CVE Database V5
Not known to be exploited · CVSS 5.4 Medium : upgrade to 31.0.12 when convenient.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 20% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 31.0.12
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 5 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade nextcloud/viewer to 31.0.12.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubnextcloud/viewerpkg:github/nextcloud/viewerOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Upgrade Nextcloud Server and Server Enterprise installations to versions 31.0.12 or 32.0.3 or later, where the vulnerability is patched.
- Implement strict content security policies that restrict the execution of scripts from uploaded SVG files or disable SVG rendering if not required.
- Configure Nextcloud to sanitize or block SVG uploads if possible, or convert SVG files to safer formats before rendering.
- Educate users about the risks of opening SVG files from untrusted sources, especially outside the Nextcloud web interface.
- Monitor logs for unusual access patterns or attempts to access SVG files directly.
- Employ web application firewalls (WAFs) with rules to detect and block malicious SVG payloads.
- Regularly audit and update all self-hosted cloud software components to minimize exposure to known vulnerabilities. These steps go beyond generic advice by focusing on SVG-specific handling and user awareness tailored to this vulnerability.
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.
References
- github.com/nextcloud/security-advisories/security/advisories/GHSA-qcw2-p26m-9gc5 (opens in a new tab)
- github.com/nextcloud/viewer/pull/3023 (opens in a new tab)
- github.com/nextcloud/viewer/commit/5044a27d61bc40c0f134298d36af91f865335b63 (opens in a new tab)
- hackerone.com/reports/3357808 (opens in a new tab)