What’s Vulnerable › Vulnerabilities

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

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.

Affected products

How to fix

Upgrade to a fixed version: Nextcloud Server 31.0.12, 32.0.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-66512 or the next vulnerability affects your stack